Record Class DecoratedPotBlockEntity.Sherds

java.lang.Object
java.lang.Record
net.minecraft.block.entity.DecoratedPotBlockEntity.Sherds
Record Components:
back -
left -
right -
front -
Enclosing class:
DecoratedPotBlockEntity

public static record DecoratedPotBlockEntity.Sherds(Item back, Item left, Item right, Item front) extends Record
Mappings:
Namespace Name
official czu$a
intermediary net/minecraft/class_8172$class_8526
named net/minecraft/block/entity/DecoratedPotBlockEntity$Sherds
official b
intermediary comp_1487
named back
official c
intermediary comp_1488
named left
official d
intermediary comp_1489
named right
official e
intermediary comp_1490
named front
  • Field Details

    • back

      private final Item back
      The field for the back record component.
    • left

      private final Item left
      The field for the left record component.
    • front

      private final Item front
      The field for the front record component.
    • DEFAULT

      public static final DecoratedPotBlockEntity.Sherds DEFAULT
      Mappings:
      Namespace Name Mixin selector
      official a Lczu$a;a:Lczu$a;
      intermediary field_44707 Lnet/minecraft/class_8172$class_8526;field_44707:Lnet/minecraft/class_8172$class_8526;
      named DEFAULT Lnet/minecraft/block/entity/DecoratedPotBlockEntity$Sherds;DEFAULT:Lnet/minecraft/block/entity/DecoratedPotBlockEntity$Sherds;
  • Constructor Details

  • Method Details

    • toNbt

      public NbtCompound toNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lczu$a;a(Lqr;)Lqr;
      intermediary method_51513 Lnet/minecraft/class_8172$class_8526;method_51513(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
      named toNbt Lnet/minecraft/block/entity/DecoratedPotBlockEntity$Sherds;toNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • stream

      public Stream<Item> stream()
      Mappings:
      Namespace Name Mixin selector
      official a Lczu$a;a()Ljava/util/stream/Stream;
      intermediary method_51512 Lnet/minecraft/class_8172$class_8526;method_51512()Ljava/util/stream/Stream;
      named stream Lnet/minecraft/block/entity/DecoratedPotBlockEntity$Sherds;stream()Ljava/util/stream/Stream;
    • fromNbt

      Mappings:
      Namespace Name Mixin selector
      official b Lczu$a;b(Lqr;)Lczu$a;
      intermediary method_51516 Lnet/minecraft/class_8172$class_8526;method_51516(Lnet/minecraft/class_2487;)Lnet/minecraft/class_8172$class_8526;
      named fromNbt Lnet/minecraft/block/entity/DecoratedPotBlockEntity$Sherds;fromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/block/entity/DecoratedPotBlockEntity$Sherds;
    • getSherd

      private static Item getSherd(NbtList list, int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lczu$a;a(Lqx;I)Lcfn;
      intermediary method_51514 Lnet/minecraft/class_8172$class_8526;method_51514(Lnet/minecraft/class_2499;I)Lnet/minecraft/class_1792;
      named getSherd Lnet/minecraft/block/entity/DecoratedPotBlockEntity$Sherds;getSherd(Lnet/minecraft/nbt/NbtList;I)Lnet/minecraft/item/Item;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • back

      public Item back()
      Returns the value of the back record component.
      Returns:
      the value of the back record component
    • left

      public Item left()
      Returns the value of the left record component.
      Returns:
      the value of the left record component
    • right

      public Item right()
      Returns the value of the right record component.
      Returns:
      the value of the right record component
    • front

      public Item front()
      Returns the value of the front record component.
      Returns:
      the value of the front record component