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
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 floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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(entityStoreBlockPhysicsUtil.applyBlockPhysics(entityStorewc.getReference(wc.getReference(
SystemDependency
public
new
SystemDependency
(Order.AFTER, ChunkBlockTickSystem.PreTick.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERChunkBlockTickSystem.PreTick.classChunkBlockTickSystem.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 ComponentAccessorcommandBufferfinal BlockSectionblockSectionfinal BlockPhysicssectionfinal FluidSectionfluidSectionfinal intcxfinal intcyfinal intczfinal intradius
getBlockPhysics
Method getBlockPhysics.
- Parameters:
final intcxfinal intcyfinal intcz
getFluidSection
Method getFluidSection.
- Parameters:
final intcxfinal intcyfinal intcz
getBlockSection
Method getBlockSection.
- Parameters:
final intcxfinal intcyfinal intcz
performBlockUpdate
public
void
performBlockUpdate
(final int x, final int y, final int z, final int maxSupportDistance)
Method performBlockUpdate.
- Parameters:
final intxfinal intyfinal intzfinal intmaxSupportDistance