Record Class CameraAimAssistData.Preset
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.model.CameraAimAssistData.Preset
- Enclosing class:
CameraAimAssistData
-
Constructor Summary
ConstructorsConstructorDescriptionPreset(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 aPresetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblocks()Returns the value of theblocksrecord component.Returns the value of theblockTagsrecord component.Returns the value of thedefaultCategoryrecord component.entities()Returns the value of theentitiesrecord component.Returns the value of theentityFamiliesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandCategoryrecord component.final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.Returns the value of theliquidItemsrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aPresetrecord class.- Parameters:
name- the value for thenamerecord componentblocks- the value for theblocksrecord componententities- the value for theentitiesrecord componentblockTags- the value for theblockTagsrecord componententityFamilies- the value for theentityFamiliesrecord componentliquidItems- the value for theliquidItemsrecord componentitems- the value for theitemsrecord componentdefaultCategory- the value for thedefaultCategoryrecord componenthandCategory- the value for thehandCategoryrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
blocks
-
entities
-
blockTags
-
entityFamilies
-
liquidItems
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
defaultCategory
Returns the value of thedefaultCategoryrecord component.- Returns:
- the value of the
defaultCategoryrecord component
-
handCategory
Returns the value of thehandCategoryrecord component.- Returns:
- the value of the
handCategoryrecord component
-