public class BlockEntity implements Component
Class BlockEntity. Provides blockentity functionality for the Hytale server.
java.lang.Object > BlockEntity
Field Summary
blockTypeKey
protected
String
blockTypeKey
Field blockTypeKey.
isBlockIdNetworkOutdated
private
boolean
isBlockIdNetworkOutdated
Field isBlockIdNetworkOutdated.
holder
final
Holder
holder
Field holder.
boundingBoxComponent
final
BoundingBox
boundingBoxComponent
Field boundingBoxComponent.
blockType
final
BlockType
blockType
Field blockType.
temp
final
boolean
temp
Field temp.
Method Detail
getComponentType
public
BlockEntity>
getComponentType
()
Method getComponentType.
BlockEntity
public
protected
BlockEntity
()
Method BlockEntity.
assembleDefaultBlockEntity
static
Holder
assembleDefaultBlockEntity
(@Nonnull final TimeResource time, final String blockTypeKey, @Nonnull final Vector3d position)
Method assembleDefaultBlockEntity.
- Parameters:
@Nonnull final TimeResourcetimefinal StringblockTypeKey@Nonnull final Vector3dposition
TransformComponent
public
new
TransformComponent
(position.clone()
Method TransformComponent.
- Parameters:
position.clone(position.clone(
updateHitbox
public
BoundingBox
updateHitbox
(@Nonnull final Ref ref, @Nonnull final CommandBuffer commandBuffer)
Method updateHitbox.
- Parameters:
@Nonnull final Refref@Nonnull final CommandBuffercommandBuffer
createBoundingBoxComponent
Method createBoundingBoxComponent.
BoundingBox
public
new
BoundingBox
(BlockBoundingBoxes.getAssetMap()
Method BoundingBox.
- Parameters:
BlockBoundingBoxes.getAssetMap(BlockBoundingBoxes.getAssetMap(
setBlockTypeKey
public
void
setBlockTypeKey
(final String blockTypeKey, @Nonnull final Ref ref, @Nonnull final CommandBuffer commandBuffer)
Method setBlockTypeKey.
- Parameters:
final StringblockTypeKey@Nonnull final Refref@Nonnull final CommandBuffercommandBuffer
getSimplePhysicsProvider
Method getSimplePhysicsProvider.
getBlockTypeKey
public
String
getBlockTypeKey
()
Method getBlockTypeKey.
addForce
public
void
addForce
(final float x, final float y, final float z)
Method addForce.
- Parameters:
final floatxfinal floatyfinal floatz
consumeBlockIdNetworkOutdated
public
boolean
consumeBlockIdNetworkOutdated
()
Method consumeBlockIdNetworkOutdated.