Record Class EnhancedAoRenderStorage.AoObjectCache
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.ao.EnhancedAoRenderStorage.AoObjectCache
- Enclosing class:
EnhancedAoRenderStorage
private static record EnhancedAoRenderStorage.AoObjectCache(FullFaceCalculator calculator, float[] weights)
extends Record
Cache these objects so that they don't need to be reallocated for every
EnhancedAoRenderStorage.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FullFaceCalculatorThe field for thecalculatorrecord component.private final float[]The field for theweightsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAoObjectCache(FullFaceCalculator calculator, float[] weights) Creates an instance of aAoObjectCacherecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecalculatorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.float[]weights()Returns the value of theweightsrecord component.
-
Field Details
-
calculator
The field for thecalculatorrecord component. -
weights
private final float[] weightsThe field for theweightsrecord component.
-
-
Constructor Details
-
AoObjectCache
Creates an instance of aAoObjectCacherecord class.- Parameters:
calculator- the value for thecalculatorrecord componentweights- the value for theweightsrecord 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). -
calculator
Returns the value of thecalculatorrecord component.- Returns:
- the value of the
calculatorrecord component
-
weights
public float[] weights()Returns the value of theweightsrecord component.- Returns:
- the value of the
weightsrecord component
-