Package net.minecraft.item.map
Record Class MapBannerMarker
java.lang.Object
java.lang.Record
net.minecraft.item.map.MapBannerMarker
- Record Components:
pos
-color
-name
-
Represents a banner marker in world.
Used to track banners in a map state.
- Mappings:
Namespace Name official eni
intermediary net/minecraft/class_17
named net/minecraft/item/map/MapBannerMarker
official c
intermediary comp_2312
named pos
official d
intermediary comp_2313
named color
official e
intermediary comp_2314
named name
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<MapBannerMarker> private final DyeColor
The field for thecolor
record component.static final com.mojang.serialization.Codec
<List<MapBannerMarker>> The field for thename
record component.private final BlockPos
The field for thepos
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor()
Returns the value of thecolor
record component.final boolean
Indicates whether some other object is "equal to" this one.static @Nullable MapBannerMarker
fromWorldBlock
(BlockView blockView, BlockPos blockPos) getKey()
final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.pos()
Returns the value of thepos
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
pos
The field for thepos
record component. -
color
The field for thecolor
record component. -
name
The field for thename
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Leni;a:Lcom/mojang/serialization/Codec;
intermediary field_48918
Lnet/minecraft/class_17;field_48918:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/item/map/MapBannerMarker;CODEC:Lcom/mojang/serialization/Codec;
-
LIST_CODEC
- Mappings:
Namespace Name Mixin selector official b
Leni;b:Lcom/mojang/serialization/Codec;
intermediary field_48919
Lnet/minecraft/class_17;field_48919:Lcom/mojang/serialization/Codec;
named LIST_CODEC
Lnet/minecraft/item/map/MapBannerMarker;LIST_CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
MapBannerMarker
- Mappings:
Namespace Name Mixin selector official <init>
Leni;<init>(Lin;Lcrs;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_17;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_1767;Ljava/util/Optional;)V
named <init>
Lnet/minecraft/item/map/MapBannerMarker;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/DyeColor;Ljava/util/Optional;)V
-
-
Method Details
-
fromWorldBlock
@Nullable public static @Nullable MapBannerMarker fromWorldBlock(BlockView blockView, BlockPos blockPos) - Mappings:
Namespace Name Mixin selector official a
Leni;a(Lczj;Lin;)Leni;
intermediary method_73
Lnet/minecraft/class_17;method_73(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_17;
named fromWorldBlock
Lnet/minecraft/item/map/MapBannerMarker;fromWorldBlock(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/item/map/MapBannerMarker;
-
getDecorationType
- Mappings:
Namespace Name Mixin selector official a
Leni;a()Liw;
intermediary method_72
Lnet/minecraft/class_17;method_72()Lnet/minecraft/class_6880;
named getDecorationType
Lnet/minecraft/item/map/MapBannerMarker;getDecorationType()Lnet/minecraft/registry/entry/RegistryEntry;
-
getKey
- Mappings:
Namespace Name Mixin selector official b
Leni;b()Ljava/lang/String;
intermediary method_71
Lnet/minecraft/class_17;method_71()Ljava/lang/String;
named getKey
Lnet/minecraft/item/map/MapBannerMarker;getKey()Ljava/lang/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. -
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)
. -
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
color
Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-