public class BlockMountComponent implements Component
Component for tracking blockmount state. Attach this component to entities that need to track blockmount data.
java.lang.Object > BlockMountComponent
Field Summary
type
private
BlockMountType
type
Field type.
blockPos
private
Vector3i
blockPos
Field blockPos.
expectedBlockType
private
BlockType
expectedBlockType
Field expectedBlockType.
expectedRotation
private
int
expectedRotation
Field expectedRotation.
seat
final
BlockMountPoint
seat
Field seat.
seatInWorldSpace
final
Vector3f
seatInWorldSpace
Field seatInWorldSpace.
distSq
final
double
distSq
Field distSq.
Method Detail
getComponentType
public
BlockMountComponent>
getComponentType
()
Method getComponentType.
BlockMountComponent
public
public
BlockMountComponent
()
Method BlockMountComponent.
getExpectedRotation
public
int
getExpectedRotation
()
Method getExpectedRotation.
isDead
public
boolean
isDead
()
Method isDead.
clean
private
void
clean
()
Method clean.
putSeatedEntity
public
void
putSeatedEntity
(@Nonnull final BlockMountPoint mountPoint, @Nonnull final Ref seatedEntity)
Method putSeatedEntity.
- Parameters:
@Nonnull final BlockMountPointmountPoint@Nonnull final RefseatedEntity
findAvailableSeat
public
BlockMountPoint
findAvailableSeat
(@Nonnull final Vector3i targetBlock, @Nonnull final BlockMountPoint[] choices, @Nonnull final Vector3f whereWasClicked)
Method findAvailableSeat.
- Parameters:
@Nonnull final Vector3itargetBlock@Nonnull final BlockMountPoint[]choices@Nonnull final Vector3fwhereWasClicked