BlockEntitySystems

public class BlockEntitySystems

Class BlockEntitySystems. Provides blockentitysystems functionality for the Hytale server.

java.lang.Object > BlockEntitySystems

Field Summary

blockEntityComponent

final BlockEntity blockEntityComponent

Field blockEntityComponent.

simplePhysicsProvider

final SimplePhysicsProvider simplePhysicsProvider

Field simplePhysicsProvider.

visible

final EntityTrackerSystems.Visible visible

Field visible.

blockEntity

final BlockEntity blockEntity

Field blockEntity.

entityScaleComponent

final EntityScaleComponent entityScaleComponent

Field entityScaleComponent.

blockIdOutdated

final boolean blockIdOutdated

Field blockIdOutdated.

update

final ComponentUpdate update

Field update.

key

final String key

Field key.

index

final int index

Field index.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

velocityComponent

final Velocity velocityComponent

Field velocityComponent.

Method Detail

BlockEntitySetupSystem

public public BlockEntitySetupSystem (final ComponentType blockEntityComponentType)

Method BlockEntitySetupSystem.

Parameters:
final ComponentType blockEntityComponentType

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

NetworkId

public new NetworkId (store.getExternalData()

Method NetworkId.

Parameters:
store.getExternalData( store.getExternalData(

BoundingBox

public new BoundingBox (Box.horizontallyCentered(1.0, 1.0, 1.0)

Method BoundingBox.

Parameters:
Box.horizontallyCentered(1.0 Box.horizontallyCentered(1.0
1.0 1.0

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

getQuery

public Query getQuery ()

Method getQuery.

BlockEntityTrackerSystem

public public BlockEntityTrackerSystem (final ComponentType visibleComponentType, final ComponentType blockEntityComponentType)

Method BlockEntityTrackerSystem.

Parameters:
final ComponentType visibleComponentType
final ComponentType blockEntityComponentType

getGroup

public SystemGroup getGroup ()

Method getGroup.

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

tick

public void tick (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method tick.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

if

public else if (!visible.newlyVisibleTo.isEmpty()

Method if.

Parameters:
!visible.newlyVisibleTo.isEmpty( !visible.newlyVisibleTo.isEmpty(

queueUpdatesFor

static void queueUpdatesFor (final Ref ref, @Nonnull final BlockEntity entity, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo, final float entityScale)

Method queueUpdatesFor.

Parameters:
final Ref ref
@Nonnull final BlockEntity entity
@Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo
final float entityScale

Ticking

public public Ticking (@Nonnull final ComponentType blockEntityComponentType)

Method Ticking.

Parameters:
@Nonnull final ComponentType blockEntityComponentType