BuilderToolsPlugin.CachedAccessor
Package: com.hypixel.hytale.builtin.buildertools
public static class CachedAccessor extends AbstractCachedAccessorA thread-local cached accessor for chunk section components, optimized for builder tool operations that need repeated access to fluid sections, block physics, and block sections within a chunk neighborhood. Extends AbstractCachedAccessor with 3 component slots.
Thread-Local Access
Section titled “Thread-Local Access”@Nonnullpublic static BuilderToolsPlugin.CachedAccessor of(ComponentAccessor<ChunkStore> accessor, int cx, int cy, int cz, int radius)Returns the thread-local CachedAccessor instance, initialized with the given ChunkStore accessor and centered at chunk coordinates (cx, cy, cz) with the specified radius.
Constructor
Section titled “Constructor”public CachedAccessor()Initializes with 3 component slots (fluid, physics, blocks).
Component Accessors
Section titled “Component Accessors”getFluidSection
Section titled “getFluidSection”@Nullablepublic FluidSection getFluidSection(int cx, int cy, int cz)Returns the FluidSection at the given chunk section coordinates, or null if not cached.
getBlockPhysics
Section titled “getBlockPhysics”@Nullablepublic BlockPhysics getBlockPhysics(int cx, int cy, int cz)Returns the BlockPhysics component at the given chunk section coordinates, or null if not cached.
getBlockSection
Section titled “getBlockSection”@Nullablepublic BlockSection getBlockSection(int cx, int cy, int cz)Returns the BlockSection at the given chunk section coordinates, or null if not cached.
Component Slot Constants
Section titled “Component Slot Constants”| Slot | Value | Component |
|---|---|---|
FLUID_COMPONENT | 0 | FluidSection |
PHYSICS_COMPONENT | 1 | BlockPhysics |
BLOCKS_COMPONENT | 2 | BlockSection |
Related Types
Section titled “Related Types”- BuilderToolsPlugin — enclosing class
- BuilderToolsPlugin.BuilderState — uses this accessor for editing operations