Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getComponentType()
- getWorldUUID()
- setWorldUUID(UUID)
- getWorldFuture()
- setWorldFuture(CompletableFuture)
- isCloseOnRemove()
- setCloseOnRemove(boolean)
- getInstanceName()
- setInstanceName(String)
- getInstanceKey()
- setInstanceKey(String)
- getPositionOffset()
- setPositionOffset(Vector3d)
- getRotation()
- setRotation(Rotation3f)
- isPersonalReturnPoint()
- setPersonalReturnPoint(boolean)
- getRemoveBlockAfter()
- setRemoveBlockAfter(double)
- clone()
Class ConfigurableInstanceBlock
java.lang.Object
com.hypixel.hytale.builtin.instances.blocks.ConfigurableInstanceBlock
- All Implemented Interfaces:
Component<ChunkStore>, Cloneable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<ConfigurableInstanceBlock> The codec used to parseConfigurableInstanceBlockinstances.Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionConfigurableInstanceBlock(UUID worldUUID, boolean closeOnRemove, String instanceName, String instanceKey, org.joml.Vector3d positionOffset, Rotation3f rotation, boolean personalReturnPoint, double removeBlockAfter) -
Method Summary
Modifier and TypeMethodDescriptionclone()org.joml.Vector3ddoublebooleanbooleanDetermines whether this instance block state is a personal return point.voidsetCloseOnRemove(boolean closeOnRemove) voidsetInstanceKey(String instanceKey) Called to set the key of this instance block state.voidsetInstanceName(String instanceName) Called to set the name of the instance.voidsetPersonalReturnPoint(boolean personalReturnPoint) Called to set whether this instance block state is a personal return point.voidsetPositionOffset(org.joml.Vector3d positionOffset) Called to set the position offset of this instance block state.voidsetRemoveBlockAfter(double removeBlockAfter) Called to set whether the block should be removed after.voidsetRotation(Rotation3f rotation) Called to set the rotation of this instance block state.voidsetWorldFuture(CompletableFuture<World> worldFuture) voidsetWorldUUID(UUID worldUUID) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
The codec used to parseConfigurableInstanceBlockinstances.
-
-
Constructor Details
-
ConfigurableInstanceBlock
public ConfigurableInstanceBlock() -
ConfigurableInstanceBlock
public ConfigurableInstanceBlock(UUID worldUUID, boolean closeOnRemove, String instanceName, String instanceKey, @Nullable org.joml.Vector3d positionOffset, @Nullable Rotation3f rotation, boolean personalReturnPoint, double removeBlockAfter)
-
-
Method Details
-
getComponentType
-
getWorldUUID
-
setWorldUUID
-
getWorldFuture
-
setWorldFuture
-
isCloseOnRemove
public boolean isCloseOnRemove() -
setCloseOnRemove
public void setCloseOnRemove(boolean closeOnRemove) -
getInstanceName
- Returns:
- the name of the instance.
-
setInstanceName
Called to set the name of the instance.- Parameters:
instanceName- The given name to set.
-
getInstanceKey
- Returns:
- the key of this instance block state.
-
setInstanceKey
Called to set the key of this instance block state.- Parameters:
instanceKey- The given key to set.
-
getPositionOffset
@Nullable public org.joml.Vector3d getPositionOffset()- Returns:
- the position offset of this instance block state.
-
setPositionOffset
public void setPositionOffset(@Nullable org.joml.Vector3d positionOffset) Called to set the position offset of this instance block state.- Parameters:
positionOffset- The given position offset to set.
-
getRotation
- Returns:
- the rotation of this instance block state.
-
setRotation
Called to set the rotation of this instance block state.- Parameters:
rotation- The given rotation to set.
-
isPersonalReturnPoint
public boolean isPersonalReturnPoint()Determines whether this instance block state is a personal return point.- Returns:
trueif it's a personal return point,falseotherwise.
-
setPersonalReturnPoint
public void setPersonalReturnPoint(boolean personalReturnPoint) Called to set whether this instance block state is a personal return point.- Parameters:
personalReturnPoint- Determines whether it's a personal return point.
-
getRemoveBlockAfter
public double getRemoveBlockAfter()- Returns:
trueif the block should be removed after,falseotherwise.
-
setRemoveBlockAfter
public void setRemoveBlockAfter(double removeBlockAfter) Called to set whether the block should be removed after.- Parameters:
removeBlockAfter- Determines whether the block should be removed after.
-
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-