Package net.minecraft.entity.decoration
Record Class DisplayEntity.ItemDisplayEntity.Data
java.lang.Object
java.lang.Record
net.minecraft.entity.decoration.DisplayEntity.ItemDisplayEntity.Data
- Record Components:
- itemStack-
- itemTransform-
- Enclosing class:
- DisplayEntity.ItemDisplayEntity
public static record DisplayEntity.ItemDisplayEntity.Data(ItemStack itemStack, ModelTransformationMode itemTransform)
extends Record
- Mappings:
- Namespace - Name - official - bfi$g$a- intermediary - net/minecraft/class_8113$class_8122$class_8226- named - net/minecraft/entity/decoration/DisplayEntity$ItemDisplayEntity$Data- official - a- intermediary - comp_1322- named - itemStack- official - b- intermediary - comp_1323- named - itemTransform
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ItemStackThe field for theitemStackrecord component.private final ModelTransformationModeThe field for theitemTransformrecord component.
- 
Constructor SummaryConstructors
- 
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 theitemStackrecord component.Returns the value of theitemTransformrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
itemStackThe field for theitemStackrecord component.
- 
itemTransformThe field for theitemTransformrecord component.
 
- 
- 
Constructor Details- 
Data
 
- 
- 
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).
- 
itemStackReturns the value of theitemStackrecord component.- Returns:
- the value of the itemStackrecord component
 
- 
itemTransformReturns the value of theitemTransformrecord component.- Returns:
- the value of the itemTransformrecord component
 
 
-