Contents
Class WildernessDebugShapeSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.component.system.tick.ArchetypeTickingSystem<EntityStore>
com.hypixel.hytale.builtin.adventure.wilderness.debug.WildernessDebugShapeSystem
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>, TickableSystem<EntityStore>
Draws the wilderness debug cubes of every player that carries a
WildernessDebug marker.
The system draws one solid cube per chunk of the player's own Wilderness tracker: green
for a wilderness chunk, red for a home chunk. It covers the whole tracked region, so the cubes
above and below the player are drawn as well.
The cubes go to the marked player alone, like the tinted tiles of
WildernessDebugMapSystem. The command that adds the marker needs the world editor
permission group, and the cubes show where the marked player is, so they must not reach the other
players of the world.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionWildernessDebugShapeSystem(ComponentType<EntityStore, WildernessDebug> debugComponentType, ComponentType<EntityStore, Wilderness> wildernessComponentType) Constructs a new debug shape system. -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidtick(float dt, ArchetypeChunk<EntityStore> table, Store<EntityStore> store, CommandBuffer<EntityStore> buffer) Required reading:CommandBufferMethods inherited from class ArchetypeTickingSystem
isExplicitQuery, test, tickMethods inherited from class System
getComponentRegistrations, getResourceRegistrations, registerResource, registerResourceMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregisteredMethods inherited from interface QuerySystem
getHierarchyScope
-
Constructor Details
-
WildernessDebugShapeSystem
public WildernessDebugShapeSystem(@Nonnull ComponentType<EntityStore, WildernessDebug> debugComponentType, @Nonnull ComponentType<EntityStore, Wilderness> wildernessComponentType) Constructs a new debug shape system.- Parameters:
debugComponentType- the component type of the debug marker. Must not be null.wildernessComponentType- the component type of the player wilderness trackers. Must not be null.
-
-
Method Details
-
getQuery
-
tick
public void tick(float dt, @Nonnull ArchetypeChunk<EntityStore> table, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> buffer) Description copied from class:ArchetypeTickingSystemRequired reading:CommandBufferCalled once per world tick for each
ArchetypeChunkwith anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.- Specified by:
tickin classArchetypeTickingSystem<EntityStore>- Parameters:
dt- The delta time in seconds.table- The affiliated archetype chunkstore- The entity store for component accessbuffer- The command buffer to execute tasks
-