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/Sherds
intermediary net/minecraft/class_8526
official dzw
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 Summary
FieldsModifier and TypeFieldDescriptionThe field for theback
record component.static final com.mojang.serialization.Codec
<Sherds> static final Sherds
The field for thefront
record component.The field for theleft
record component.static final PacketCodec
<RegistryByteBuf, Sherds> The field for theright
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
appendSherdTooltip
(Consumer<Text> textConsumer, Optional<Item> sherdItem) void
appendTooltip
(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components) back()
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.left()
Returns the value of theleft
record component.right()
Returns the value of theright
record component.toList()
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. -
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
Ldzw;a:Ldzw;
-
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
Ldzw;b:Lcom/mojang/serialization/Codec;
-
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
Ldzw;c:Lze;
-
-
Constructor Details
-
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>
Ldzw;<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;)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>
Ldzw;<init>(Ldag;Ldag;Ldag;Ldag;)V
-
Sherds
-
-
Method Details
-
getSherd
- 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
Ldzw;a(Ljava/util/List;I)Ljava/util/Optional;
-
toList
- Mappings:
Namespace Name Mixin selector named toList
Lnet/minecraft/block/entity/Sherds;toList()Ljava/util/List;
intermediary method_51512
Lnet/minecraft/class_8526;method_51512()Ljava/util/List;
official a
Ldzw;a()Ljava/util/List;
-
appendTooltip
public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components) - Specified by:
appendTooltip
in interfaceTooltipAppender
- Mappings:
Namespace Name Mixin selector named appendTooltip
Lnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/component/ComponentsAccess;)V
intermediary method_57409
Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_9473;)V
official a
Lddp;a(Ldag$b;Ljava/util/function/Consumer;Ldbz;Lkg;)V
-
appendSherdTooltip
- Mappings:
Namespace Name Mixin selector named appendSherdTooltip
Lnet/minecraft/block/entity/Sherds;appendSherdTooltip(Ljava/util/function/Consumer;Ljava/util/Optional;)V
intermediary method_67242
Lnet/minecraft/class_8526;method_67242(Ljava/util/function/Consumer;Ljava/util/Optional;)V
official a
Ldzw;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 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
-