Class BlockEntity
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.BlockEntity
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic final BuilderCodec<BlockEntity> static final intprivate booleanprivate SimplePhysicsProviderFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddForce(float x, float y, float z) voidstatic Holder<EntityStore> assembleDefaultBlockEntity(TimeResource time, String blockTypeKey, Vector3d position) clone()booleanstatic ComponentType<EntityStore, BlockEntity> initPhysics(BoundingBox boundingBox) voidsetBlockTypeKey(String blockTypeKey, Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer) updateHitbox(Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer) 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
-
CODEC
-
DEFAULT_DESPAWN_SECONDS
public static final int DEFAULT_DESPAWN_SECONDS- See Also:
-
simplePhysicsProvider
-
blockTypeKey
-
isBlockIdNetworkOutdated
private boolean isBlockIdNetworkOutdated
-
-
Constructor Details
-
BlockEntity
protected BlockEntity() -
BlockEntity
-
-
Method Details
-
getComponentType
-
assembleDefaultBlockEntity
@Nonnull public static Holder<EntityStore> assembleDefaultBlockEntity(@Nonnull TimeResource time, String blockTypeKey, @Nonnull Vector3d position) -
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) -
getSimplePhysicsProvider
-
getBlockTypeKey
-
addForce
public void addForce(float x, float y, float z) -
addForce
-
consumeBlockIdNetworkOutdated
public boolean consumeBlockIdNetworkOutdated() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-