Class BlockWindow
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.windows.Window
com.hypixel.hytale.server.core.entity.entities.player.windows.BlockWindow
- All Implemented Interfaces:
ValidatedWindow
- Direct Known Subclasses:
BenchWindow,ContainerBlockWindow
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.Window
Window.WindowCloseEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypeprivate static final floatprivate doubleprivate doubleprotected final intprotected final intprotected final intprotected final intFields inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.Window
CLIENT_REQUESTABLE_WINDOW_TYPES, closeEventRegistry, isDirty, LOGGER, needRebuild, windowType -
Constructor Summary
ConstructorsConstructorDescriptionBlockWindow(WindowType windowType, int x, int y, int z, int rotationIndex, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType) -
Method Summary
Modifier and TypeMethodDescriptioncom.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypedoubleintintgetX()intgetY()intgetZ()voidsetMaxDistance(double maxDistance) booleanvalidate()Methods inherited from class com.hypixel.hytale.server.core.entity.entities.player.windows.Window
close, consumeIsDirty, consumeNeedRebuild, equals, getData, getId, getPlayerRef, getType, handleAction, hashCode, init, invalidate, onClose, onClose0, onOpen, onOpen0, registerCloseEvent, registerCloseEvent, registerCloseEvent, setId, setNeedRebuild
-
Field Details
-
MAX_DISTANCE
private static final float MAX_DISTANCE- See Also:
-
x
protected final int x -
y
protected final int y -
z
protected final int z -
blockType
@Nonnull protected com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType -
rotationIndex
protected final int rotationIndex -
maxDistance
private double maxDistance -
maxDistanceSqr
private double maxDistanceSqr
-
-
Constructor Details
-
BlockWindow
public BlockWindow(@Nonnull WindowType windowType, int x, int y, int z, int rotationIndex, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType)
-
-
Method Details
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getRotationIndex
public int getRotationIndex() -
getBlockType
@Nonnull public com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType getBlockType() -
setMaxDistance
public void setMaxDistance(double maxDistance) -
getMaxDistance
public double getMaxDistance() -
validate
public boolean validate()- Specified by:
validatein interfaceValidatedWindow
-