classpublicPriority 3
BlockEntity
com.hypixel.hytale.server.core.entity.entities.BlockEntity
implements Component
12
Methods
12
Public Methods
2
Fields
3
Constructors
Constants
BuilderCodec<BlockEntity>CODEC= BuilderCodec.builder(BlockEntity.class, BlockEntity::new)
.append(new KeyedCodec<>("BlockTy...
intDEFAULT_DESPAWN_SECONDS= 120
Constructors
package-private
BlockEntity(TimeResource time, String blockTypeKey, Vector3d position)protected
BlockEntity()public
BlockEntity(String blockTypeKey)Methods
Public Methods (12)
public
void addForce(float x, float y, float z)public
void addForce(Vector3d force)publicstatic
Holder<EntityStore> assembleDefaultBlockEntity(TimeResource time, String blockTypeKey, Vector3d position)@Nonnull
public
Component<EntityStore> clone()@Nonnull@Override
public
boolean consumeBlockIdNetworkOutdated()public
BoundingBox createBoundingBoxComponent()@Nullable
public
String getBlockTypeKey()publicstatic
ComponentType<EntityStore, BlockEntity> getComponentType()public
SimplePhysicsProvider getSimplePhysicsProvider()@Nonnull
public
SimplePhysicsProvider initPhysics(BoundingBox boundingBox)@Nonnull
public
void setBlockTypeKey(String blockTypeKey, Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer)public
BoundingBox updateHitbox(Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer)@Nonnull
Fields
Protected Fields (1)
protected
String blockTypeKeyPrivate/Package Fields (1)
private
boolean isBlockIdNetworkOutdated