Class CreativeEraserSystems

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.player.CreativeEraserSystems

public class CreativeEraserSystems extends Object
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.

  • 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 - The ComponentAccessor for component access.