Record Class DecoratedPotBlockEntity.Decorations
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity.Decorations
- Enclosing class:
- DecoratedPotBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Item
The field for theback
record component.static final DecoratedPotBlockEntity.Decorations
private final Item
The field for thefront
record component.private final Item
The field for theleft
record component.private final Item
The field for theright
record component. -
Constructor Summary
ConstructorsConstructorDescriptionDecorations
(Item back, Item left, Item right, Item front) Creates an instance of aDecorations
record class. -
Method Summary
Modifier and TypeMethodDescriptionback()
Returns the value of theback
record component.final boolean
Indicates whether some other object is "equal to" this one.front()
Returns the value of thefront
record component.final int
hashCode()
Returns a hash code value for this object.private static Item
itemFromTag
(ListTag p_285179_, int p_285060_) left()
Returns the value of theleft
record component.load
(CompoundTag p_284959_) right()
Returns the value of theright
record component.save
(CompoundTag p_285011_) sorted()
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
back
The field for theback
record component. -
left
The field for theleft
record component. -
right
The field for theright
record component. -
front
The field for thefront
record component. -
EMPTY
-
-
Constructor Details
-
Decorations
Creates an instance of aDecorations
record class.- Parameters:
back
- the value for theback
record componentleft
- the value for theleft
record componentright
- the value for theright
record componentfront
- the value for thefront
record component
-
-
Method Details
-
save
-
sorted
-
load
-
itemFromTag
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
back
Returns the value of theback
record component.- Returns:
- the value of the
back
record component
-
left
Returns the value of theleft
record component.- Returns:
- the value of the
left
record component
-
right
Returns the value of theright
record component.- Returns:
- the value of the
right
record component
-
front
Returns the value of thefront
record component.- Returns:
- the value of the
front
record component
-