Record Class ModelOverride.Condition
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelOverride.Condition
- Record Components:
type-threshold-
- Enclosing class:
ModelOverride
@Environment(CLIENT)
public static record ModelOverride.Condition(Identifier type, float threshold)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelOverride$Conditionintermediary net/minecraft/class_799$class_5826official gna$bnamed typeintermediary comp_3195official anamed thresholdintermediary comp_3196official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thethresholdrecord component.private final IdentifierThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCondition(Identifier type, float threshold) Creates an instance of aConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
Constructor Details
-
Method Details
-
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
threshold
public float threshold()Returns the value of thethresholdrecord component.- Returns:
- the value of the
thresholdrecord component
-