Class BlockMountComponent
java.lang.Object
com.hypixel.hytale.builtin.mounts.BlockMountComponent
- All Implemented Interfaces:
Component<ChunkStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Vector3iprivate Map<BlockMountPoint, Ref<EntityStore>> private com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypeprivate intprivate Map<Ref<EntityStore>, BlockMountPoint> private BlockMountTypeFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionBlockMountComponent(BlockMountType type, Vector3i blockPos, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType expectedBlockType, int expectedRotation) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidclean()clone()findAvailableSeat(Vector3i targetBlock, BlockMountPoint[] choices, Vector3f whereWasClicked) com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypeintgetSeatBlockBySeatedEntity(Ref<EntityStore> seatedEntity) Collection<? extends Ref<EntityStore>> getType()booleanisDead()voidputSeatedEntity(BlockMountPoint mountPoint, Ref<EntityStore> seatedEntity) voidremoveSeatedEntity(Ref<EntityStore> seatedEntity) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
type
-
blockPos
-
expectedBlockType
private com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType expectedBlockType -
expectedRotation
private int expectedRotation -
entitiesByMountPoint
-
mountPointByEntity
-
-
Constructor Details
-
BlockMountComponent
public BlockMountComponent() -
BlockMountComponent
public BlockMountComponent(BlockMountType type, Vector3i blockPos, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType expectedBlockType, int expectedRotation)
-
-
Method Details
-
getComponentType
-
getType
-
getBlockPos
-
getExpectedBlockType
public com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType getExpectedBlockType() -
getExpectedRotation
public int getExpectedRotation() -
isDead
public boolean isDead() -
clean
private void clean() -
putSeatedEntity
public void putSeatedEntity(@Nonnull BlockMountPoint mountPoint, @Nonnull Ref<EntityStore> seatedEntity) -
removeSeatedEntity
-
getSeatBlockBySeatedEntity
-
getSeatedEntities
-
findAvailableSeat
@Nullable public BlockMountPoint findAvailableSeat(@Nonnull Vector3i targetBlock, @Nonnull BlockMountPoint[] choices, @Nonnull Vector3f whereWasClicked) -
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Overrides:
clonein classObject
-