BlockEntity

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 TimeResource time
final String blockTypeKey
@Nonnull final Vector3d position

TransformComponent

public new TransformComponent (position.clone()

Method TransformComponent.

Parameters:
position.clone( position.clone(

initPhysics

public SimplePhysicsProvider initPhysics (@Nonnull final BoundingBox boundingBox)

Method initPhysics.

Parameters:
@Nonnull final BoundingBox boundingBox

updateHitbox

public BoundingBox updateHitbox (@Nonnull final Ref ref, @Nonnull final CommandBuffer commandBuffer)

Method updateHitbox.

Parameters:
@Nonnull final Ref ref
@Nonnull final CommandBuffer commandBuffer

createBoundingBoxComponent

public BoundingBox 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 String blockTypeKey
@Nonnull final Ref ref
@Nonnull final CommandBuffer commandBuffer

getSimplePhysicsProvider

public SimplePhysicsProvider 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 float x
final float y
final float z

consumeBlockIdNetworkOutdated

public boolean consumeBlockIdNetworkOutdated ()

Method consumeBlockIdNetworkOutdated.

clone

public Component clone ()

Method clone.