Contents
Class ContainerBlockWindow
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.windows.Window
com.hypixel.hytale.server.core.entity.entities.player.windows.BlockWindow
com.hypixel.hytale.server.core.entity.entities.player.windows.ContainerBlockWindow
- All Implemented Interfaces:
ItemContainerWindow, ValidatedWindow
A block window that is affiliated with a container block
- Since:
- 22/4/17.
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Window
Window.WindowCloseEvent -
Field Summary
Fields inherited from class Window
CLIENT_REQUESTABLE_WINDOW_TYPES -
Constructor Summary
ConstructorsConstructorDescriptionContainerBlockWindow(int x, int y, int z, int rotationIndex, BlockType blockType, ItemContainer itemContainer) Default Constructor for aContainerBlockWindowinstance -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObjectgetData()voidhandleAction(Ref<EntityStore> ref, Store<EntityStore> store, WindowAction action) Called to handle the given action for this windowvoidonClose0(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) booleanonOpen0(Ref<EntityStore> ref, Store<EntityStore> store) Methods inherited from class BlockWindow
getBlockType, getMaxDistance, getRotationIndex, getX, getY, getZ, setMaxDistance, validateMethods inherited from class Window
close, equals, getId, getPlayerRef, getType, hashCode, init, registerCloseEvent, registerCloseEvent, registerCloseEvent, setId
-
Constructor Details
-
ContainerBlockWindow
public ContainerBlockWindow(int x, int y, int z, int rotationIndex, @Nonnull BlockType blockType, @Nonnull ItemContainer itemContainer) Default Constructor for aContainerBlockWindowinstance- Parameters:
x- The X position of the blocky- The Y position of the blockz- The Z position of the blockrotationIndex- The rotation index of the blockblockType- The block type affiliated with the blockitemContainer- The item container of the block
-
-
Method Details
-
getData
-
onOpen0
-
onClose0
public void onClose0(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getItemContainer
- Specified by:
getItemContainerin interfaceItemContainerWindow- Returns:
- the item container instance affiliated with the window
-
handleAction
public void handleAction(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull WindowAction action) Description copied from class:WindowCalled to handle the given action for this window- Overrides:
handleActionin classWindow- Parameters:
ref- The entity ref of the affiliated entitystore- The entity store for component accessaction- The window action to handle
-