Skip to content

Commit

Permalink
Revert "Execute render and layout resolution pipeline (#615)"
Browse files Browse the repository at this point in the history
This reverts commit b20ed2f.
  • Loading branch information
DevNatan committed Apr 23, 2024
1 parent 3532910 commit 37fa106
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,6 @@ public interface IFRenderContext extends IFConfinedContext {
@ApiStatus.Internal
void simulateClick(int rawSlot, Viewer whoClicked, Object platformEvent, boolean isCombined);

/**
* <b><i> This is an internal inventory-framework API that should not be used from outside of
* this library. No compatibility guarantees are provided. </i></b>
*/
@ApiStatus.Internal
void simulateRender();

/**
* <b><i> This is an internal inventory-framework API that should not be used from outside of
* this library. No compatibility guarantees are provided. </i></b>
*/
@ApiStatus.Internal
void resolveLayout();

/**
* Adds a new component to this context.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ public boolean hasContext(@NotNull UUID id) {
@SuppressWarnings("rawtypes")
@ApiStatus.Internal
public void renderContext(@NotNull RENDER_CONTEXT context) {
context.simulateRender();
IFDebug.debug("Rendering context %s", context.getId());
// TODO Execute PipelinePhase.Context.CONTEXT_RENDER pipeline phase
// getPipeline().execute(context);

@SuppressWarnings("rawtypes")
final PlatformView view = (PlatformView) context.getRoot();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.util.UUID;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import me.devnatan.inventoryframework.IFDebug;
import me.devnatan.inventoryframework.PlatformView;
import me.devnatan.inventoryframework.RootView;
import me.devnatan.inventoryframework.UpdateReason;
Expand Down Expand Up @@ -201,18 +200,6 @@ public void simulateClick(int rawSlot, Viewer whoClicked, Object platformEvent,
getPipeline().execute(PipelinePhase.Context.CONTEXT_SLOT_CLICK, clickContext);
}

@Override
public void simulateRender() {
IFDebug.debug("Rendering context %s", getId());
getPipeline().execute(PipelinePhase.Context.CONTEXT_RENDER, this);
resolveLayout();
}

@Override
public void resolveLayout() {
getPipeline().execute(PipelinePhase.Context.CONTEXT_LAYOUT_RESOLUTION, this);
}

/**
* <b><i> This is an internal inventory-framework API that should not be used from outside of
* this library. No compatibility guarantees are provided. </i></b>
Expand Down

0 comments on commit 37fa106

Please sign in to comment.