Record Class PlayerCreativeSettings

java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.modules.entity.player.PlayerCreativeSettings
Record Components:
allowNPCDetection - Whether NPC detection is allowed while in creative mode.
respondToHit - Whether the player responds to being hit while in creative mode.
placeMode - The active block placement mode while in creative mode.
noPhysics - Whether block physics updates are suppressed for this player.
activateTriggerVolumes - Whether the player activates trigger volumes while in creative mode.

public record PlayerCreativeSettings(boolean allowNPCDetection, boolean respondToHit, @Nonnull PlaceMode placeMode, int creativeInteractionDistance, boolean showBuilderToolsNotifications, boolean noPhysics, boolean eraserEnabled, boolean activateTriggerVolumes) extends Record
Represents the creative-specific settings for a player entity.
  • Constructor Details

    • PlayerCreativeSettings

      public PlayerCreativeSettings()
      Empty Constructor for a PlayerCreativeSettings instance.
    • PlayerCreativeSettings

      public PlayerCreativeSettings(boolean allowNPCDetection, boolean respondToHit, @Nonnull PlaceMode placeMode, int creativeInteractionDistance, boolean showBuilderToolsNotifications, boolean noPhysics, boolean eraserEnabled, boolean activateTriggerVolumes)
      Creates an instance of a PlayerCreativeSettings record class.
      Parameters:
      allowNPCDetection - the value for the allowNPCDetection record component
      respondToHit - the value for the respondToHit record component
      placeMode - the value for the placeMode record component
      creativeInteractionDistance - the value for the creativeInteractionDistance record component
      showBuilderToolsNotifications - the value for the showBuilderToolsNotifications record component
      noPhysics - the value for the noPhysics record component
      eraserEnabled - the value for the eraserEnabled record component
      activateTriggerVolumes - the value for the activateTriggerVolumes record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • allowNPCDetection

      public boolean allowNPCDetection()
      Returns the value of the allowNPCDetection record component.
      Returns:
      the value of the allowNPCDetection record component
    • respondToHit

      public boolean respondToHit()
      Returns the value of the respondToHit record component.
      Returns:
      the value of the respondToHit record component
    • placeMode

      @Nonnull public PlaceMode placeMode()
      Returns the value of the placeMode record component.
      Returns:
      the value of the placeMode record component
    • creativeInteractionDistance

      public int creativeInteractionDistance()
      Returns the value of the creativeInteractionDistance record component.
      Returns:
      the value of the creativeInteractionDistance record component
    • showBuilderToolsNotifications

      public boolean showBuilderToolsNotifications()
      Returns the value of the showBuilderToolsNotifications record component.
      Returns:
      the value of the showBuilderToolsNotifications record component
    • noPhysics

      public boolean noPhysics()
      Returns the value of the noPhysics record component.
      Returns:
      the value of the noPhysics record component
    • eraserEnabled

      public boolean eraserEnabled()
      Returns the value of the eraserEnabled record component.
      Returns:
      the value of the eraserEnabled record component
    • activateTriggerVolumes

      public boolean activateTriggerVolumes()
      Returns the value of the activateTriggerVolumes record component.
      Returns:
      the value of the activateTriggerVolumes record component