Package net.minecraft.data.models
Record Class BlockModelGenerators.BookSlotModelCacheKey
java.lang.Object
java.lang.Record
net.minecraft.data.models.BlockModelGenerators.BookSlotModelCacheKey
- Enclosing class:
- BlockModelGenerators
static record BlockModelGenerators.BookSlotModelCacheKey(ModelTemplate template, String modelSuffix)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for themodelSuffixrecord component.private final ModelTemplateThe field for thetemplaterecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionBookSlotModelCacheKey(ModelTemplate template, String modelSuffix) Creates an instance of aBookSlotModelCacheKeyrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodelSuffixrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
templateThe field for thetemplaterecord component.
- 
modelSuffixThe field for themodelSuffixrecord component.
 
- 
- 
Constructor Details- 
BookSlotModelCacheKeyBookSlotModelCacheKey(ModelTemplate template, String modelSuffix) Creates an instance of aBookSlotModelCacheKeyrecord class.- Parameters:
- template- the value for the- templaterecord component
- modelSuffix- the value for the- modelSuffixrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
templateReturns the value of thetemplaterecord component.- Returns:
- the value of the templaterecord component
 
- 
modelSuffixReturns the value of themodelSuffixrecord component.- Returns:
- the value of the modelSuffixrecord component
 
 
-