Class MapBannerMarker

java.lang.Object
net.minecraft.item.map.MapBannerMarker

public class MapBannerMarker extends Object
Represents a banner marker in world.

Used to track banners in a map state.

Mappings:
Namespace Name
official drc
intermediary net/minecraft/class_17
named net/minecraft/item/map/MapBannerMarker
  • Field Details

    • pos

      private final BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official a Ldrc;a:Lgt;
      intermediary field_69 Lnet/minecraft/class_17;field_69:Lnet/minecraft/class_2338;
      named pos Lnet/minecraft/item/map/MapBannerMarker;pos:Lnet/minecraft/util/math/BlockPos;
    • color

      private final DyeColor color
      Mappings:
      Namespace Name Mixin selector
      official b Ldrc;b:Lbzq;
      intermediary field_68 Lnet/minecraft/class_17;field_68:Lnet/minecraft/class_1767;
      named color Lnet/minecraft/item/map/MapBannerMarker;color:Lnet/minecraft/util/DyeColor;
    • name

      @Nullable private final @Nullable Text name
      Mappings:
      Namespace Name Mixin selector
      official c Ldrc;c:Lrq;
      intermediary field_67 Lnet/minecraft/class_17;field_67:Lnet/minecraft/class_2561;
      named name Lnet/minecraft/item/map/MapBannerMarker;name:Lnet/minecraft/text/Text;
  • Constructor Details

    • MapBannerMarker

      public MapBannerMarker(BlockPos pos, DyeColor dyeColor, @Nullable @Nullable Text name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldrc;<init>(Lgt;Lbzq;Lrq;)V
      intermediary <init> Lnet/minecraft/class_17;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_1767;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/item/map/MapBannerMarker;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/DyeColor;Lnet/minecraft/text/Text;)V
  • Method Details

    • fromNbt

      public static MapBannerMarker fromNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrc;a(Lpj;)Ldrc;
      intermediary method_67 Lnet/minecraft/class_17;method_67(Lnet/minecraft/class_2487;)Lnet/minecraft/class_17;
      named fromNbt Lnet/minecraft/item/map/MapBannerMarker;fromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/item/map/MapBannerMarker;
    • fromWorldBlock

      @Nullable public static @Nullable MapBannerMarker fromWorldBlock(BlockView blockView, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrc;a(Lcgd;Lgt;)Ldrc;
      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;
    • getPos

      public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official a Ldrc;a()Lgt;
      intermediary method_70 Lnet/minecraft/class_17;method_70()Lnet/minecraft/class_2338;
      named getPos Lnet/minecraft/item/map/MapBannerMarker;getPos()Lnet/minecraft/util/math/BlockPos;
    • getColor

      public DyeColor getColor()
      Mappings:
      Namespace Name Mixin selector
      official b Ldrc;b()Lbzq;
      intermediary method_35502 Lnet/minecraft/class_17;method_35502()Lnet/minecraft/class_1767;
      named getColor Lnet/minecraft/item/map/MapBannerMarker;getColor()Lnet/minecraft/util/DyeColor;
    • getIconType

      public MapIcon.Type getIconType()
      Mappings:
      Namespace Name Mixin selector
      official c Ldrc;c()Ldrd$a;
      intermediary method_72 Lnet/minecraft/class_17;method_72()Lnet/minecraft/class_20$class_21;
      named getIconType Lnet/minecraft/item/map/MapBannerMarker;getIconType()Lnet/minecraft/item/map/MapIcon$Type;
    • getName

      @Nullable public @Nullable Text getName()
      Mappings:
      Namespace Name Mixin selector
      official d Ldrc;d()Lrq;
      intermediary method_68 Lnet/minecraft/class_17;method_68()Lnet/minecraft/class_2561;
      named getName Lnet/minecraft/item/map/MapBannerMarker;getName()Lnet/minecraft/text/Text;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Ldrc;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_17;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/item/map/MapBannerMarker;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getNbt

      public NbtCompound getNbt()
      Mappings:
      Namespace Name Mixin selector
      official e Ldrc;e()Lpj;
      intermediary method_74 Lnet/minecraft/class_17;method_74()Lnet/minecraft/class_2487;
      named getNbt Lnet/minecraft/item/map/MapBannerMarker;getNbt()Lnet/minecraft/nbt/NbtCompound;
    • getKey

      public String getKey()
      Mappings:
      Namespace Name Mixin selector
      official f Ldrc;f()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;