Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getComponentType()
- assembleDefaultBlockEntity(TimeResource, String, Vector3d)
- initPhysics(BoundingBox)
- updateHitbox(Ref, CommandBuffer)
- createBoundingBoxComponent()
- setBlockTypeKey(String, Ref, CommandBuffer)
- setBlockTypeKey(String, Ref, ComponentAccessor)
- getSimplePhysicsProvider()
- getBlockTypeKey()
- addVelocity(float, float, float)
- addVelocity(Vector3d)
- consumeOutdatedAnchor()
- consumeBlockIdNetworkOutdated()
- clone()
Class BlockEntity
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.BlockEntity
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<BlockEntity> static final intstatic final intFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVelocity(float x, float y, float z) voidaddVelocity(org.joml.Vector3d velocity) static Holder<EntityStore> assembleDefaultBlockEntity(TimeResource time, String blockTypeKey, org.joml.Vector3d position) clone()booleanbooleanstatic ComponentType<EntityStore, BlockEntity> initPhysics(BoundingBox boundingBox) voidsetBlockTypeKey(String blockTypeKey, Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer) voidsetBlockTypeKey(String blockTypeKey, Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) updateHitbox(Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
CODEC
-
DEFAULT_DESPAWN_SECONDS
public static final int DEFAULT_DESPAWN_SECONDS- See Also:
-
-
Constructor Details
-
BlockEntity
-
-
Method Details
-
getComponentType
-
assembleDefaultBlockEntity
@Nonnull public static Holder<EntityStore> assembleDefaultBlockEntity(@Nonnull TimeResource time, String blockTypeKey, @Nonnull org.joml.Vector3d position) - See Also:
-
initPhysics
-
updateHitbox
@Nonnull public BoundingBox updateHitbox(@Nonnull Ref<EntityStore> ref, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
createBoundingBoxComponent
-
setBlockTypeKey
public void setBlockTypeKey(String blockTypeKey, @Nonnull Ref<EntityStore> ref, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
setBlockTypeKey
public void setBlockTypeKey(String blockTypeKey, @Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getSimplePhysicsProvider
-
getBlockTypeKey
-
addVelocity
public void addVelocity(float x, float y, float z) -
addVelocity
public void addVelocity(@Nonnull org.joml.Vector3d velocity) -
consumeOutdatedAnchor
public boolean consumeOutdatedAnchor() -
consumeBlockIdNetworkOutdated
public boolean consumeBlockIdNetworkOutdated() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-