Package net.minecraft.block.entity
Record Class Sherds
java.lang.Object
java.lang.Record
net.minecraft.block.entity.Sherds
- Record Components:
back-left-right-front-
- All Implemented Interfaces:
TooltipAppender
public record Sherds(Optional<Item> back, Optional<Item> left, Optional<Item> right, Optional<Item> front)
extends Record
implements TooltipAppender
- Mappings:
Namespace Name named net/minecraft/block/entity/Sherdsintermediary net/minecraft/class_8526official dxvnamed backintermediary comp_1487official dnamed leftintermediary comp_1488official enamed rightintermediary comp_1489official fnamed frontintermediary comp_1490official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thebackrecord component.static final com.mojang.serialization.Codec<Sherds> static final SherdsThe field for thefrontrecord component.The field for theleftrecord component.static final PacketCodec<RegistryByteBuf, Sherds> The field for therightrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Item.TooltipContext context, Consumer<Text> tooltip, TooltipType type, ComponentsAccess components) back()Returns the value of thebackrecord component.final booleanIndicates whether some other object is "equal to" this one.static SherdsfromNbt(@Nullable NbtCompound nbt) front()Returns the value of thefrontrecord component.final inthashCode()Returns a hash code value for this object.left()Returns the value of theleftrecord component.private static voidmethod_67242(Consumer<Text> consumer, Optional<Item> optional) right()Returns the value of therightrecord component.toList()toNbt(NbtCompound nbt) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
back
The field for thebackrecord component. -
left
The field for theleftrecord component. -
right
The field for therightrecord component. -
front
The field for thefrontrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/block/entity/Sherds;DEFAULT:Lnet/minecraft/block/entity/Sherds;intermediary field_44707Lnet/minecraft/class_8526;field_44707:Lnet/minecraft/class_8526;official aLdxv;a:Ldxv;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/entity/Sherds;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49414Lnet/minecraft/class_8526;field_49414:Lcom/mojang/serialization/Codec;official bLdxv;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/block/entity/Sherds;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49415Lnet/minecraft/class_8526;field_49415:Lnet/minecraft/class_9139;official cLdxv;c:Lyu;
-
-
Constructor Details
-
Sherds
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/Sherds;<init>(Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_8526;<init>(Ljava/util/List;)Vofficial <init>Ldxv;<init>(Ljava/util/List;)V
-
Sherds
- 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;)Vintermediary <init>Lnet/minecraft/class_8526;<init>(Lnet/minecraft/class_1792;Lnet/minecraft/class_1792;Lnet/minecraft/class_1792;Lnet/minecraft/class_1792;)Vofficial <init>Ldxv;<init>(Lcyo;Lcyo;Lcyo;Lcyo;)V
-
Sherds
-
-
Method Details
-
getSherd
- Mappings:
Namespace Name Mixin selector named getSherdLnet/minecraft/block/entity/Sherds;getSherd(Ljava/util/List;I)Ljava/util/Optional;intermediary method_51514Lnet/minecraft/class_8526;method_51514(Ljava/util/List;I)Ljava/util/Optional;official aLdxv;a(Ljava/util/List;I)Ljava/util/Optional;
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbtLnet/minecraft/block/entity/Sherds;toNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;intermediary method_51513Lnet/minecraft/class_8526;method_51513(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;official aLdxv;a(Ltx;)Ltx;
-
toList
- Mappings:
Namespace Name Mixin selector named toListLnet/minecraft/block/entity/Sherds;toList()Ljava/util/List;intermediary method_51512Lnet/minecraft/class_8526;method_51512()Ljava/util/List;official aLdxv;a()Ljava/util/List;
-
fromNbt
- Mappings:
Namespace Name Mixin selector named fromNbtLnet/minecraft/block/entity/Sherds;fromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/block/entity/Sherds;intermediary method_51516Lnet/minecraft/class_8526;method_51516(Lnet/minecraft/class_2487;)Lnet/minecraft/class_8526;official bLdxv;b(Ltx;)Ldxv;
-
appendTooltip
public void appendTooltip(Item.TooltipContext context, Consumer<Text> tooltip, TooltipType type, ComponentsAccess components) - Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector named appendTooltipLnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_9473;)Vofficial aLdbx;a(Lcyo$b;Ljava/util/function/Consumer;Ldah;Lke;)V
-
method_67242
- Mappings:
Namespace Name Mixin selector named method_67242Lnet/minecraft/block/entity/Sherds;method_67242(Ljava/util/function/Consumer;Ljava/util/Optional;)Vintermediary method_67242Lnet/minecraft/class_8526;method_67242(Ljava/util/function/Consumer;Ljava/util/Optional;)Vofficial aLdxv;a(Ljava/util/function/Consumer;Ljava/util/Optional;)V
-
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 thebackrecord component.- Returns:
- the value of the
backrecord component
-
left
Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
front
Returns the value of thefrontrecord component.- Returns:
- the value of the
frontrecord component
-