Record Class PlayerSettings

java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.modules.entity.player.PlayerSettings
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public record PlayerSettings(boolean showEntityMarkers, PickupLocation armorItemsPreferredPickupLocation, PickupLocation weaponAndToolItemsPreferredPickupLocation, PickupLocation usableItemsItemsPreferredPickupLocation, PickupLocation solidBlockItemsPreferredPickupLocation, PickupLocation miscItemsPreferredPickupLocation, PlayerCreativeSettings creativeSettings) extends Record implements Component<EntityStore>
  • Field Details

    • showEntityMarkers

      private final boolean showEntityMarkers
      The field for the showEntityMarkers record component.
    • armorItemsPreferredPickupLocation

      private final PickupLocation armorItemsPreferredPickupLocation
      The field for the armorItemsPreferredPickupLocation record component.
    • weaponAndToolItemsPreferredPickupLocation

      private final PickupLocation weaponAndToolItemsPreferredPickupLocation
      The field for the weaponAndToolItemsPreferredPickupLocation record component.
    • usableItemsItemsPreferredPickupLocation

      private final PickupLocation usableItemsItemsPreferredPickupLocation
      The field for the usableItemsItemsPreferredPickupLocation record component.
    • solidBlockItemsPreferredPickupLocation

      private final PickupLocation solidBlockItemsPreferredPickupLocation
      The field for the solidBlockItemsPreferredPickupLocation record component.
    • miscItemsPreferredPickupLocation

      private final PickupLocation miscItemsPreferredPickupLocation
      The field for the miscItemsPreferredPickupLocation record component.
    • creativeSettings

      private final PlayerCreativeSettings creativeSettings
      The field for the creativeSettings record component.
    • INSTANCE

      @Nonnull private static final PlayerSettings INSTANCE
  • Constructor Details

    • PlayerSettings

      public PlayerSettings(boolean showEntityMarkers, PickupLocation armorItemsPreferredPickupLocation, PickupLocation weaponAndToolItemsPreferredPickupLocation, PickupLocation usableItemsItemsPreferredPickupLocation, PickupLocation solidBlockItemsPreferredPickupLocation, PickupLocation miscItemsPreferredPickupLocation, PlayerCreativeSettings creativeSettings)
      Creates an instance of a PlayerSettings record class.
      Parameters:
      showEntityMarkers - the value for the showEntityMarkers record component
      armorItemsPreferredPickupLocation - the value for the armorItemsPreferredPickupLocation record component
      weaponAndToolItemsPreferredPickupLocation - the value for the weaponAndToolItemsPreferredPickupLocation record component
      usableItemsItemsPreferredPickupLocation - the value for the usableItemsItemsPreferredPickupLocation record component
      solidBlockItemsPreferredPickupLocation - the value for the solidBlockItemsPreferredPickupLocation record component
      miscItemsPreferredPickupLocation - the value for the miscItemsPreferredPickupLocation record component
      creativeSettings - the value for the creativeSettings record component
  • Method Details

    • getComponentType

      @Nonnull public static ComponentType<EntityStore,PlayerSettings> getComponentType()
    • defaults

      @Nonnull public static PlayerSettings defaults()
    • clone

      @Nonnull public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Overrides:
      clone in class Object
    • 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 '=='.
      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.
    • showEntityMarkers

      public boolean showEntityMarkers()
      Returns the value of the showEntityMarkers record component.
      Returns:
      the value of the showEntityMarkers record component
    • armorItemsPreferredPickupLocation

      public PickupLocation armorItemsPreferredPickupLocation()
      Returns the value of the armorItemsPreferredPickupLocation record component.
      Returns:
      the value of the armorItemsPreferredPickupLocation record component
    • weaponAndToolItemsPreferredPickupLocation

      public PickupLocation weaponAndToolItemsPreferredPickupLocation()
      Returns the value of the weaponAndToolItemsPreferredPickupLocation record component.
      Returns:
      the value of the weaponAndToolItemsPreferredPickupLocation record component
    • usableItemsItemsPreferredPickupLocation

      public PickupLocation usableItemsItemsPreferredPickupLocation()
      Returns the value of the usableItemsItemsPreferredPickupLocation record component.
      Returns:
      the value of the usableItemsItemsPreferredPickupLocation record component
    • solidBlockItemsPreferredPickupLocation

      public PickupLocation solidBlockItemsPreferredPickupLocation()
      Returns the value of the solidBlockItemsPreferredPickupLocation record component.
      Returns:
      the value of the solidBlockItemsPreferredPickupLocation record component
    • miscItemsPreferredPickupLocation

      public PickupLocation miscItemsPreferredPickupLocation()
      Returns the value of the miscItemsPreferredPickupLocation record component.
      Returns:
      the value of the miscItemsPreferredPickupLocation record component
    • creativeSettings

      public PlayerCreativeSettings creativeSettings()
      Returns the value of the creativeSettings record component.
      Returns:
      the value of the creativeSettings record component