BlockPhysicsSystems

public class BlockPhysicsSystems

Class BlockPhysicsSystems. Provides blockphysicssystems functionality for the Hytale server.

java.lang.Object > BlockPhysicsSystems

Field Summary

section

final ChunkSection section

Field section.

blockSection

final BlockSection blockSection

Field blockSection.

blockPhysics

final BlockPhysics blockPhysics

Field blockPhysics.

fluidSection

final FluidSection fluidSection

Field fluidSection.

worldChunk

final WorldChunk worldChunk

Field worldChunk.

accessor

final CachedAccessor accessor

Field accessor.

phys

final BlockPhysics phys

Field phys.

isDeco

final boolean isDeco

Field isDeco.

blockType

final BlockType blockType

Field blockType.

world

final World world

Field world.

entityStore

final Store entityStore

Field entityStore.

blockX

final int blockX

Field blockX.

blockY

final int blockY

Field blockY.

blockZ

final int blockZ

Field blockZ.

filler

final int filler

Field filler.

rotation

final int rotation

Field rotation.

selfBlockSection

protected BlockSection selfBlockSection

Field selfBlockSection.

selfPhysics

protected BlockPhysics selfPhysics

Field selfPhysics.

selfFluidSection

protected FluidSection selfFluidSection

Field selfFluidSection.

wx

final int wx

Field wx.

wz

final int wz

Field wz.

wy

final int wy

Field wy.

physics

final BlockPhysics physics

Field physics.

support

final int support

Field support.

blockChunk

final BlockSection blockChunk

Field blockChunk.

Method Detail

getQuery

public Query getQuery ()

Method getQuery.

getDependencies

public Set> getDependencies ()

Method getDependencies.

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 (blockType.canBePlacedAsDeco()

Method if.

Parameters:
blockType.canBePlacedAsDeco( blockType.canBePlacedAsDeco(

switch

public return switch (BlockPhysicsUtil.applyBlockPhysics(entityStore, wc.getReference()

Method switch.

Parameters:
BlockPhysicsUtil.applyBlockPhysics(entityStore BlockPhysicsUtil.applyBlockPhysics(entityStore
wc.getReference( wc.getReference(

SystemDependency

public new SystemDependency (Order.AFTER, ChunkBlockTickSystem.PreTick.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
ChunkBlockTickSystem.PreTick.class ChunkBlockTickSystem.PreTick.class

CachedAccessor

public protected CachedAccessor ()

Method CachedAccessor.

of

static CachedAccessor of (final ComponentAccessor commandBuffer, final BlockSection blockSection, final BlockPhysics section, final FluidSection fluidSection, final int cx, final int cy, final int cz, final int radius)

Method of.

Parameters:
final ComponentAccessor commandBuffer
final BlockSection blockSection
final BlockPhysics section
final FluidSection fluidSection
final int cx
final int cy
final int cz
final int radius

getBlockPhysics

public BlockPhysics getBlockPhysics (final int cx, final int cy, final int cz)

Method getBlockPhysics.

Parameters:
final int cx
final int cy
final int cz

getFluidSection

public FluidSection getFluidSection (final int cx, final int cy, final int cz)

Method getFluidSection.

Parameters:
final int cx
final int cy
final int cz

getBlockSection

public BlockSection getBlockSection (final int cx, final int cy, final int cz)

Method getBlockSection.

Parameters:
final int cx
final int cy
final int cz

performBlockUpdate

public void performBlockUpdate (final int x, final int y, final int z, final int maxSupportDistance)

Method performBlockUpdate.

Parameters:
final int x
final int y
final int z
final int maxSupportDistance