use of eu.pb4.sgui.api.ClickType in project ArmorStandEditor by Patbox.
the class EditorGuis method openGui.
public static void openGui(ServerPlayerEntity player) {
SimpleGui gui = new SimpleGui(ScreenHandlerType.GENERIC_9X5, player, false) {
@Override
public boolean onClick(int index, ClickType type, SlotActionType action, GuiElementInterface element) {
setIcons(player, this);
return super.onClick(index, type, action, element);
}
};
gui.setTitle(new TranslatableText("armorstandeditor.gui.editor_title"));
setIcons(player, gui);
gui.open();
}
Aggregations