Contents
Class WildernessDebugMapSystem
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.WildernessDebugMapSystem
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>, TickableSystem<EntityStore>
Sends the wilderness world map overlay to every player that carries a
WildernessDebug
marker.
The system reads the chunk states from the player's own
Wilderness tracker, takes the tile that the world map already built for each of those
chunks, and sends a tinted copy of it to that player alone: green for a wilderness chunk, red for
a home chunk. The world map is flat, so only the tracker layer that holds the player is used.
Nothing else on the server sees the tinted tiles. The world map generator and its image cache stay untouched, so the tiles of the other players keep their original colours.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionWildernessDebugMapSystem(ComponentType<EntityStore, WildernessDebug> debugComponentType, ComponentType<EntityStore, Wilderness> wildernessComponentType) Constructs a new debug map 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
-
WildernessDebugMapSystem
public WildernessDebugMapSystem(@Nonnull ComponentType<EntityStore, WildernessDebug> debugComponentType, @Nonnull ComponentType<EntityStore, Wilderness> wildernessComponentType) Constructs a new debug map 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
-