Skip to content

Commit

Permalink
Working gui
Browse files Browse the repository at this point in the history
BoogieMonster1O1 committed Aug 4, 2022
1 parent 010e80b commit f3d8fa4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -36,12 +36,10 @@

public class CartAssemblerHandler extends SyncedGuiDescription {
private static final Identifier PACKET_ASSEMBLE_CLICK = StevesCarts.id("assemble_click");
private final ScreenHandlerContext context;

// TODO
public CartAssemblerHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) {
super(StevesCartsScreenHandlers.CART_ASSEMBLER, syncId, playerInventory, getBlockInventory(context, CartAssemblerBlockEntity.SIZE), getBlockPropertyDelegate(context));
this.context = context;
WFixedPanel rootPanel = new WFixedPanel();
rootPanel.setSize(436, 220);
rootPanel.setInsets(Insets.ROOT_PANEL);
@@ -94,6 +92,7 @@ public CartAssemblerHandler(int syncId, PlayerInventory playerInventory, ScreenH
attachmentSlots.addChangeListener(moduleListener);
toolSlot.addChangeListener(moduleListener);
engineSlots.addChangeListener(moduleListener);
rootPanel.validate(this);
}

public static void handleAssembleClick(ServerPlayerEntity player) {

0 comments on commit f3d8fa4

Please sign in to comment.