Contents
Class BlockExplosive
java.lang.Object
com.hypixel.hytale.builtin.reactiveblocks.states.BlockExplosive
- All Implemented Interfaces:
Component<ChunkStore>, Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<BlockExplosive> The codec used to parseBlockExplosiveinstances.Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voiddoExplosion(BlockType blockType, org.joml.Vector3d position, Rotation3f blockRotation, ComponentAccessor<EntityStore> entityAccessor, ComponentAccessor<ChunkStore> chunkAccessor) static ComponentType<ChunkStore, BlockExplosive> floatbooleanvoidsetDetonationInstant(Instant startInstant) 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 parseBlockExplosiveinstances.
-
-
Constructor Details
-
BlockExplosive
public BlockExplosive() -
BlockExplosive
public BlockExplosive(boolean primedOnPlace, float fuseDuration)
-
-
Method Details
-
getComponentType
- Returns:
- the component type for the
BlockExplosivecomponent
-
getPrimedOnPlace
public boolean getPrimedOnPlace() -
getFuseDuration
public float getFuseDuration() -
setDetonationInstant
-
getDetonationInstant
-
doExplosion
public void doExplosion(@Nonnull BlockType blockType, @Nonnull org.joml.Vector3d position, @Nonnull Rotation3f blockRotation, @Nonnull ComponentAccessor<EntityStore> entityAccessor, @Nonnull ComponentAccessor<ChunkStore> chunkAccessor) -
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-