Contents
Class BlockMountComponent
java.lang.Object
com.hypixel.hytale.builtin.mounts.BlockMountComponent
- All Implemented Interfaces:
Component<ChunkStore>, Cloneable
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionBlockMountComponent(BlockMountType type, org.joml.Vector3i blockPos, BlockType expectedBlockType, int expectedRotation) -
Method Summary
Modifier and TypeMethodDescriptionclone()findAvailableSeat(org.joml.Vector3i targetBlock, BlockMountPoint[] choices, org.joml.Vector3d whereWasClicked) org.joml.Vector3istatic ComponentType<ChunkStore, BlockMountComponent> intgetSeatBlockBySeatedEntity(Ref<EntityStore> seatedEntity) Collection<? extends Ref<EntityStore>> getType()booleanisDead()voidputSeatedEntity(BlockMountPoint mountPoint, Ref<EntityStore> seatedEntity) voidremoveSeatedEntity(Ref<EntityStore> seatedEntity) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
BlockMountComponent
public BlockMountComponent() -
BlockMountComponent
public BlockMountComponent(BlockMountType type, org.joml.Vector3i blockPos, BlockType expectedBlockType, int expectedRotation)
-
-
Method Details
-
getComponentType
-
getType
-
getBlockPos
public org.joml.Vector3i getBlockPos() -
getExpectedBlockType
-
getExpectedRotation
public int getExpectedRotation() -
isDead
public boolean isDead() -
putSeatedEntity
public void putSeatedEntity(@Nonnull BlockMountPoint mountPoint, @Nonnull Ref<EntityStore> seatedEntity) -
removeSeatedEntity
-
getSeatBlockBySeatedEntity
-
getSeatedEntities
-
findAvailableSeat
@Nullable public BlockMountPoint findAvailableSeat(@Nonnull org.joml.Vector3i targetBlock, @Nonnull BlockMountPoint[] choices, @Nonnull org.joml.Vector3d whereWasClicked) -
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-