Record Class Sherds

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

public record Sherds(Optional<Item> back, Optional<Item> left, Optional<Item> right, Optional<Item> front) extends Record
Mappings:
Namespace Name
named net/minecraft/block/entity/Sherds
intermediary net/minecraft/class_8526
official dqn
named back
intermediary comp_1487
official d
named left
intermediary comp_1488
official e
named right
intermediary comp_1489
official f
named front
intermediary comp_1490
official g
  • Field Details

    • back

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

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

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

      public static final Sherds DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/block/entity/Sherds;DEFAULT:Lnet/minecraft/block/entity/Sherds;
      intermediary field_44707 Lnet/minecraft/class_8526;field_44707:Lnet/minecraft/class_8526;
      official a Ldqn;a:Ldqn;
    • CODEC

      public static final com.mojang.serialization.Codec<Sherds> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/entity/Sherds;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49414 Lnet/minecraft/class_8526;field_49414:Lcom/mojang/serialization/Codec;
      official b Ldqn;b:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,Sherds> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/block/entity/Sherds;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49415 Lnet/minecraft/class_8526;field_49415:Lnet/minecraft/class_9139;
      official c Ldqn;c:Lzn;
  • Constructor Details

    • Sherds

      private Sherds(List<Item> sherds)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/Sherds;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_8526;<init>(Ljava/util/List;)V
      official <init> Ldqn;<init>(Ljava/util/List;)V
    • Sherds

      public Sherds(Item back, Item left, Item right, Item front)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/Sherds;<init>(Lnet/minecraft/item/Item;Lnet/minecraft/item/Item;Lnet/minecraft/item/Item;Lnet/minecraft/item/Item;)V
      intermediary <init> Lnet/minecraft/class_8526;<init>(Lnet/minecraft/class_1792;Lnet/minecraft/class_1792;Lnet/minecraft/class_1792;Lnet/minecraft/class_1792;)V
      official <init> Ldqn;<init>(Lcum;Lcum;Lcum;Lcum;)V
    • Sherds

      public Sherds(Optional<Item> optional, Optional<Item> optional2, Optional<Item> optional3, Optional<Item> optional4)
  • Method Details

    • getSherd

      private static Optional<Item> getSherd(List<Item> sherds, int index)
      Mappings:
      Namespace Name Mixin selector
      named getSherd Lnet/minecraft/block/entity/Sherds;getSherd(Ljava/util/List;I)Ljava/util/Optional;
      intermediary method_51514 Lnet/minecraft/class_8526;method_51514(Ljava/util/List;I)Ljava/util/Optional;
      official a Ldqn;a(Ljava/util/List;I)Ljava/util/Optional;
    • toNbt

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

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

      public static Sherds fromNbt(@Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named fromNbt Lnet/minecraft/block/entity/Sherds;fromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/block/entity/Sherds;
      intermediary method_51516 Lnet/minecraft/class_8526;method_51516(Lnet/minecraft/class_2487;)Lnet/minecraft/class_8526;
      official b Ldqn;b(Lus;)Ldqn;
    • 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 Optional<Item> back()
      Returns the value of the back record component.
      Returns:
      the value of the back record component
    • left

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

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

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