Record Class CameraAimAssistData.Preset

java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.model.CameraAimAssistData.Preset
Enclosing class:
CameraAimAssistData

public static record CameraAimAssistData.Preset(String name, List<String> blocks, List<String> entities, List<String> blockTags, List<String> entityFamilies, List<String> liquidItems, List<CameraAimAssistData.ItemCategory> items, String defaultCategory, String handCategory) extends Record
  • Constructor Details

    • Preset

      public Preset(String name, List<String> blocks, List<String> entities, List<String> blockTags, List<String> entityFamilies, List<String> liquidItems, List<CameraAimAssistData.ItemCategory> items, String defaultCategory, String handCategory)
      Creates an instance of a Preset record class.
      Parameters:
      name - the value for the name record component
      blocks - the value for the blocks record component
      entities - the value for the entities record component
      blockTags - the value for the blockTags record component
      entityFamilies - the value for the entityFamilies record component
      liquidItems - the value for the liquidItems record component
      items - the value for the items record component
      defaultCategory - the value for the defaultCategory record component
      handCategory - the value for the handCategory 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • blocks

      public List<String> blocks()
      Returns the value of the blocks record component.
      Returns:
      the value of the blocks record component
    • entities

      public List<String> entities()
      Returns the value of the entities record component.
      Returns:
      the value of the entities record component
    • blockTags

      public List<String> blockTags()
      Returns the value of the blockTags record component.
      Returns:
      the value of the blockTags record component
    • entityFamilies

      public List<String> entityFamilies()
      Returns the value of the entityFamilies record component.
      Returns:
      the value of the entityFamilies record component
    • liquidItems

      public List<String> liquidItems()
      Returns the value of the liquidItems record component.
      Returns:
      the value of the liquidItems record component
    • items

      Returns the value of the items record component.
      Returns:
      the value of the items record component
    • defaultCategory

      public String defaultCategory()
      Returns the value of the defaultCategory record component.
      Returns:
      the value of the defaultCategory record component
    • handCategory

      public String handCategory()
      Returns the value of the handCategory record component.
      Returns:
      the value of the handCategory record component