Contents
Class CreativeEraserSystems
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.player.CreativeEraserSystems
Maintains the creative eraser's root interaction override on the player.
The eraser replaces the Primary interaction for any held item, so it is expressed as a Primary
entry in the player's Interactions component, which root resolution already prefers
over item bindings on both sides. The interaction to run comes from the world's gameplay
config; the component entry is added and removed as the synced eraser setting and the player's
game mode change.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStrips the eraser override when the player is removed from the world.static classRe-applies the eraser override when the synced player settings change. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrefresh(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) Called to re-apply the eraser override after the player's settings or game mode changed.
-
Constructor Details
-
CreativeEraserSystems
public CreativeEraserSystems()
-
-
Method Details
-
refresh
public static void refresh(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Called to re-apply the eraser override after the player's settings or game mode changed.- Parameters:
ref- The entity reference of the player entity.componentAccessor- TheComponentAccessorfor component access.
-