Class Window
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.windows.Window
- Direct Known Subclasses:
BlockWindow,ContainerWindow,FieldCraftingWindow,ItemStackContainerWindow,MemoriesWindow
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<WindowType, Supplier<? extends Window>> protected final com.hypixel.hytale.event.SyncEventBusRegistry<Void, Window.WindowCloseEvent> private intprotected final AtomicBooleanprotected static final com.hypixel.hytale.logger.HytaleLoggerprivate WindowManagerprotected final AtomicBooleanprivate PlayerRefprotected final WindowType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected booleanprotected voidbooleanabstract com.google.gson.JsonObjectgetData()intgetId()getType()voidhandleAction(Ref<EntityStore> ref, Store<EntityStore> store, WindowAction action) inthashCode()voidinit(PlayerRef playerRef, WindowManager manager) protected voidprotected voidonClose()protected abstract voidonClose0()protected booleanonOpen()protected abstract booleanonOpen0()registerCloseEvent(short priority, Consumer<Window.WindowCloseEvent> consumer) registerCloseEvent(EventPriority priority, Consumer<Window.WindowCloseEvent> consumer) registerCloseEvent(Consumer<Window.WindowCloseEvent> consumer) voidsetId(int id) protected void
-
Field Details
-
CLIENT_REQUESTABLE_WINDOW_TYPES
-
LOGGER
@Nonnull protected static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
closeEventRegistry
@Nonnull protected final com.hypixel.hytale.event.SyncEventBusRegistry<Void,Window.WindowCloseEvent> closeEventRegistry -
windowType
-
isDirty
-
needRebuild
-
id
private int id -
manager
-
playerRef
-
-
Constructor Details
-
Window
-
-
Method Details
-
init
-
getData
@Nonnull public abstract com.google.gson.JsonObject getData() -
onOpen0
protected abstract boolean onOpen0() -
onClose0
protected abstract void onClose0() -
onOpen
protected boolean onOpen() -
onClose
protected void onClose() -
handleAction
public void handleAction(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull WindowAction action) -
getType
-
setId
public void setId(int id) -
getId
public int getId() -
getPlayerRef
-
close
public void close() -
invalidate
protected void invalidate() -
setNeedRebuild
protected void setNeedRebuild() -
consumeIsDirty
protected boolean consumeIsDirty() -
consumeNeedRebuild
protected void consumeNeedRebuild() -
registerCloseEvent
@Nonnull public EventRegistration registerCloseEvent(@Nonnull Consumer<Window.WindowCloseEvent> consumer) -
registerCloseEvent
@Nonnull public EventRegistration registerCloseEvent(short priority, @Nonnull Consumer<Window.WindowCloseEvent> consumer) -
registerCloseEvent
@Nonnull public EventRegistration registerCloseEvent(@Nonnull EventPriority priority, @Nonnull Consumer<Window.WindowCloseEvent> consumer) -
equals
-
hashCode
public int hashCode()
-