Class BlockPhysicsSystems.CachedAccessor
java.lang.Object
com.hypixel.hytale.server.core.universe.world.chunk.AbstractCachedAccessor
com.hypixel.hytale.builtin.blockphysics.BlockPhysicsSystems.CachedAccessor
- Enclosing class:
BlockPhysicsSystems
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprotected com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSectionprotected FluidSectionprotected BlockPhysicsprivate static final ThreadLocal<BlockPhysicsSystems.CachedAccessor> Fields inherited from class com.hypixel.hytale.server.core.universe.world.chunk.AbstractCachedAccessor
commandBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlockPhysics(int cx, int cy, int cz) com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSectiongetBlockSection(int cx, int cy, int cz) getFluidSection(int cx, int cy, int cz) of(ComponentAccessor<ChunkStore> commandBuffer, com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSection blockSection, BlockPhysics section, FluidSection fluidSection, int cx, int cy, int cz, int radius) voidperformBlockUpdate(int x, int y, int z) voidperformBlockUpdate(int x, int y, int z, int maxSupportDistance) Methods inherited from class com.hypixel.hytale.server.core.universe.world.chunk.AbstractCachedAccessor
getChunk, getComponentSection, getSection, init, insertSection, insertSectionComponent
-
Field Details
-
THREAD_LOCAL
-
PHYSICS_COMPONENT
private static final int PHYSICS_COMPONENT- See Also:
-
FLUID_COMPONENT
private static final int FLUID_COMPONENT- See Also:
-
BLOCK_COMPONENT
private static final int BLOCK_COMPONENT- See Also:
-
selfBlockSection
protected com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSection selfBlockSection -
selfPhysics
-
selfFluidSection
-
-
Constructor Details
-
CachedAccessor
protected CachedAccessor()
-
-
Method Details
-
of
@Nonnull public static BlockPhysicsSystems.CachedAccessor of(ComponentAccessor<ChunkStore> commandBuffer, com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSection blockSection, BlockPhysics section, FluidSection fluidSection, int cx, int cy, int cz, int radius) -
getBlockPhysics
-
getFluidSection
-
getBlockSection
@Nullable public com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSection getBlockSection(int cx, int cy, int cz) -
performBlockUpdate
public void performBlockUpdate(int x, int y, int z, int maxSupportDistance) -
performBlockUpdate
public void performBlockUpdate(int x, int y, int z)
-