Record Class SimpleBabyArmor.Definition
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.SimpleBabyArmor.Definition
- Enclosing class:
SimpleBabyArmor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SimpleBabyArmor.Definition> -
Constructor Summary
ConstructorsConstructorDescriptionDefinition(List<net.minecraft.resources.ResourceKey<net.minecraft.world.item.equipment.EquipmentAsset>> equipmentAssets, Boolean downscale, Integer cutoff) Creates an instance of aDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncutoff()Returns the value of thecutoffrecord component.Returns the value of thedownscalerecord component.final booleanIndicates whether some other object is "equal to" this one.List<net.minecraft.resources.ResourceKey<net.minecraft.world.item.equipment.EquipmentAsset>> Returns the value of theequipmentAssetsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Definition
public Definition(List<net.minecraft.resources.ResourceKey<net.minecraft.world.item.equipment.EquipmentAsset>> equipmentAssets, Boolean downscale, Integer cutoff) Creates an instance of aDefinitionrecord class.- Parameters:
equipmentAssets- the value for theequipmentAssetsrecord componentdownscale- the value for thedownscalerecord componentcutoff- the value for thecutoffrecord 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). -
equipmentAssets
public List<net.minecraft.resources.ResourceKey<net.minecraft.world.item.equipment.EquipmentAsset>> equipmentAssets()Returns the value of theequipmentAssetsrecord component.- Returns:
- the value of the
equipmentAssetsrecord component
-
downscale
Returns the value of thedownscalerecord component.- Returns:
- the value of the
downscalerecord component
-
cutoff
Returns the value of thecutoffrecord component.- Returns:
- the value of the
cutoffrecord component
-