Package net.minecraft.item.map
Class MapState
java.lang.Object
net.minecraft.world.PersistentState
net.minecraft.item.map.MapState
public class MapState extends PersistentState
- Mappings:
Namespace Name official dcrintermediary net/minecraft/class_22named net/minecraft/item/map/MapState
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMapState.class_5637classMapState.PlayerUpdateTracker -
Field Summary
Fields Modifier and Type Field Description private Map<String,MapBannerMarker>bannersbyte[]colorsRegistryKey<World>dimensionprivate static Loggerfield_25019private Map<String,MapFrameMarker>framesprivate Map<String,MapIcon>iconsbooleanlockedbytescaleprivate booleanshowIconsprivate booleanunlimitedTrackingprivate List<MapState.PlayerUpdateTracker>updateTrackersprivate Map<PlayerEntity,MapState.PlayerUpdateTracker>updateTrackersByPlayerintxCenterintzCenter -
Constructor Summary
Constructors Modifier Constructor Description privateMapState(int xCenter, int zCenter, byte scale, boolean showIcons, boolean unlimitedTracking, boolean locked, RegistryKey<World> dimension) -
Method Summary
Modifier and Type Method Description voidaddBanner(WorldAccess world, BlockPos pos)static voidaddDecorationsTag(ItemStack stack, BlockPos pos, String id, MapIcon.Type type)private voidaddIcon(MapIcon.Type type, WorldAccess world, String key, double x, double z, double rotation, Text text)Packet<?>getPlayerMarkerPacket(int int2, PlayerEntity playerEntity)MapState.PlayerUpdateTrackergetPlayerSyncData(PlayerEntity player)private voidmarkDirty(int x, int z)MapStatemethod_32361()static MapStatemethod_32362(byte byte2, boolean bool, RegistryKey<World> registryKey)static MapStatemethod_32363(double double2, double double3, byte byte2, boolean bool, boolean bool2, RegistryKey<World> registryKey)MapStatemethod_32364(int int2)booleanmethod_32365(int int2, int int3, byte byte2)private voidmethod_32368(String string)voidmethod_32369(MapIcon[] mapIcon)voidmethod_32370(int int2, int int3, byte byte2)static MapStatemethod_32371(CompoundTag compoundTag)booleanmethod_32372()Iterable<MapIcon>method_32373()private voidmethod_32374()voidremoveBanner(BlockView world, int x, int z)voidremoveFrame(BlockPos pos, int id)CompoundTagtoTag(CompoundTag tag)voidupdate(PlayerEntity player, ItemStack stack)Methods inherited from class net.minecraft.world.PersistentState
isDirty, markDirty, save, setDirty
-
Field Details
-
field_25019
- Mappings:
Namespace Name Mixin selector official gLdcr;g:Lorg/apache/logging/log4j/Logger;intermediary field_25019Lnet/minecraft/class_22;field_25019:Lorg/apache/logging/log4j/Logger;named field_25019Lnet/minecraft/item/map/MapState;field_25019:Lorg/apache/logging/log4j/Logger;
-
xCenter
public final int xCenter- Mappings:
Namespace Name Mixin selector official aLdcr;a:Iintermediary field_116Lnet/minecraft/class_22;field_116:Inamed xCenterLnet/minecraft/item/map/MapState;xCenter:I
-
zCenter
public final int zCenter- Mappings:
Namespace Name Mixin selector official bLdcr;b:Iintermediary field_115Lnet/minecraft/class_22;field_115:Inamed zCenterLnet/minecraft/item/map/MapState;zCenter:I
-
dimension
- Mappings:
Namespace Name Mixin selector official cLdcr;c:Lwa;intermediary field_118Lnet/minecraft/class_22;field_118:Lnet/minecraft/class_5321;named dimensionLnet/minecraft/item/map/MapState;dimension:Lnet/minecraft/util/registry/RegistryKey;
-
showIcons
private final boolean showIcons- Mappings:
Namespace Name Mixin selector official hLdcr;h:Zintermediary field_114Lnet/minecraft/class_22;field_114:Znamed showIconsLnet/minecraft/item/map/MapState;showIcons:Z
-
unlimitedTracking
private final boolean unlimitedTracking- Mappings:
Namespace Name Mixin selector official iLdcr;i:Zintermediary field_113Lnet/minecraft/class_22;field_113:Znamed unlimitedTrackingLnet/minecraft/item/map/MapState;unlimitedTracking:Z
-
scale
public final byte scale- Mappings:
Namespace Name Mixin selector official dLdcr;d:Bintermediary field_119Lnet/minecraft/class_22;field_119:Bnamed scaleLnet/minecraft/item/map/MapState;scale:B
-
colors
public byte[] colors- Mappings:
Namespace Name Mixin selector official eLdcr;e:[Bintermediary field_122Lnet/minecraft/class_22;field_122:[Bnamed colorsLnet/minecraft/item/map/MapState;colors:[B
-
locked
public final boolean locked- Mappings:
Namespace Name Mixin selector official fLdcr;f:Zintermediary field_17403Lnet/minecraft/class_22;field_17403:Znamed lockedLnet/minecraft/item/map/MapState;locked:Z
-
updateTrackers
- Mappings:
Namespace Name Mixin selector official jLdcr;j:Ljava/util/List;intermediary field_112Lnet/minecraft/class_22;field_112:Ljava/util/List;named updateTrackersLnet/minecraft/item/map/MapState;updateTrackers:Ljava/util/List;
-
updateTrackersByPlayer
- Mappings:
Namespace Name Mixin selector official kLdcr;k:Ljava/util/Map;intermediary field_120Lnet/minecraft/class_22;field_120:Ljava/util/Map;named updateTrackersByPlayerLnet/minecraft/item/map/MapState;updateTrackersByPlayer:Ljava/util/Map;
-
banners
- Mappings:
Namespace Name Mixin selector official lLdcr;l:Ljava/util/Map;intermediary field_123Lnet/minecraft/class_22;field_123:Ljava/util/Map;named bannersLnet/minecraft/item/map/MapState;banners:Ljava/util/Map;
-
icons
- Mappings:
Namespace Name Mixin selector official mLdcr;m:Ljava/util/Map;intermediary field_117Lnet/minecraft/class_22;field_117:Ljava/util/Map;named iconsLnet/minecraft/item/map/MapState;icons:Ljava/util/Map;
-
frames
- Mappings:
Namespace Name Mixin selector official nLdcr;n:Ljava/util/Map;intermediary field_121Lnet/minecraft/class_22;field_121:Ljava/util/Map;named framesLnet/minecraft/item/map/MapState;frames:Ljava/util/Map;
-
-
Constructor Details
-
MapState
private MapState(int xCenter, int zCenter, byte scale, boolean showIcons, boolean unlimitedTracking, boolean locked, RegistryKey<World> dimension)- Mappings:
Namespace Name Mixin selector official <init>Ldcr;<init>(IIBZZZLwa;)Vintermediary <init>Lnet/minecraft/class_22;<init>(IIBZZZLnet/minecraft/class_5321;)Vnamed <init>Lnet/minecraft/item/map/MapState;<init>(IIBZZZLnet/minecraft/util/registry/RegistryKey;)V
-
-
Method Details
-
method_32363
public static MapState method_32363(double double2, double double3, byte byte2, boolean bool, boolean bool2, RegistryKey<World> registryKey)- Mappings:
Namespace Name Mixin selector official aLdcr;a(DDBZZLwa;)Ldcr;intermediary method_32363Lnet/minecraft/class_22;method_32363(DDBZZLnet/minecraft/class_5321;)Lnet/minecraft/class_22;named method_32363Lnet/minecraft/item/map/MapState;method_32363(DDBZZLnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/item/map/MapState;
-
method_32362
@Environment(CLIENT) public static MapState method_32362(byte byte2, boolean bool, RegistryKey<World> registryKey)- Mappings:
Namespace Name Mixin selector official aLdcr;a(BZLwa;)Ldcr;intermediary method_32362Lnet/minecraft/class_22;method_32362(BZLnet/minecraft/class_5321;)Lnet/minecraft/class_22;named method_32362Lnet/minecraft/item/map/MapState;method_32362(BZLnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/item/map/MapState;
-
method_32371
- Mappings:
Namespace Name Mixin selector official bLdcr;b(Lmq;)Ldcr;intermediary method_32371Lnet/minecraft/class_22;method_32371(Lnet/minecraft/class_2487;)Lnet/minecraft/class_22;named method_32371Lnet/minecraft/item/map/MapState;method_32371(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/item/map/MapState;
-
toTag
- Specified by:
toTagin classPersistentState- Mappings:
Namespace Name Mixin selector official aLdcm;a(Lmq;)Lmq;intermediary method_75Lnet/minecraft/class_18;method_75(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named toTagLnet/minecraft/world/PersistentState;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
method_32361
- Mappings:
Namespace Name Mixin selector official aLdcr;a()Ldcr;intermediary method_32361Lnet/minecraft/class_22;method_32361()Lnet/minecraft/class_22;named method_32361Lnet/minecraft/item/map/MapState;method_32361()Lnet/minecraft/item/map/MapState;
-
method_32364
- Mappings:
Namespace Name Mixin selector official aLdcr;a(I)Ldcr;intermediary method_32364Lnet/minecraft/class_22;method_32364(I)Lnet/minecraft/class_22;named method_32364Lnet/minecraft/item/map/MapState;method_32364(I)Lnet/minecraft/item/map/MapState;
-
update
- Mappings:
Namespace Name Mixin selector official aLdcr;a(Lbhk;Lbnu;)Vintermediary method_102Lnet/minecraft/class_22;method_102(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vnamed updateLnet/minecraft/item/map/MapState;update(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
-
method_32368
- Mappings:
Namespace Name Mixin selector official aLdcr;a(Ljava/lang/String;)Vintermediary method_32368Lnet/minecraft/class_22;method_32368(Ljava/lang/String;)Vnamed method_32368Lnet/minecraft/item/map/MapState;method_32368(Ljava/lang/String;)V
-
addDecorationsTag
- Mappings:
Namespace Name Mixin selector official aLdcr;a(Lbnu;Lfx;Ljava/lang/String;Ldco$a;)Vintermediary method_110Lnet/minecraft/class_22;method_110(Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;Ljava/lang/String;Lnet/minecraft/class_20$class_21;)Vnamed addDecorationsTagLnet/minecraft/item/map/MapState;addDecorationsTag(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;Ljava/lang/String;Lnet/minecraft/item/map/MapIcon$Type;)V
-
addIcon
private void addIcon(MapIcon.Type type, @Nullable WorldAccess world, String key, double x, double z, double rotation, @Nullable Text text)- Mappings:
Namespace Name Mixin selector official aLdcr;a(Ldco$a;Lbtv;Ljava/lang/String;DDDLoi;)Vintermediary method_107Lnet/minecraft/class_22;method_107(Lnet/minecraft/class_20$class_21;Lnet/minecraft/class_1936;Ljava/lang/String;DDDLnet/minecraft/class_2561;)Vnamed addIconLnet/minecraft/item/map/MapState;addIcon(Lnet/minecraft/item/map/MapIcon$Type;Lnet/minecraft/world/WorldAccess;Ljava/lang/String;DDDLnet/minecraft/text/Text;)V
-
getPlayerMarkerPacket
- Mappings:
Namespace Name Mixin selector official aLdcr;a(ILbhk;)Lpa;intermediary method_100Lnet/minecraft/class_22;method_100(ILnet/minecraft/class_1657;)Lnet/minecraft/class_2596;named getPlayerMarkerPacketLnet/minecraft/item/map/MapState;getPlayerMarkerPacket(ILnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/network/Packet;
-
markDirty
private void markDirty(int x, int z)- Mappings:
Namespace Name Mixin selector official aLdcr;a(II)Vintermediary method_103Lnet/minecraft/class_22;method_103(II)Vnamed markDirtyLnet/minecraft/item/map/MapState;markDirty(II)V
-
method_32374
private void method_32374()- Mappings:
Namespace Name Mixin selector official gLdcr;g()Vintermediary method_32374Lnet/minecraft/class_22;method_32374()Vnamed method_32374Lnet/minecraft/item/map/MapState;method_32374()V
-
getPlayerSyncData
- Mappings:
Namespace Name Mixin selector official aLdcr;a(Lbhk;)Ldcr$a;intermediary method_101Lnet/minecraft/class_22;method_101(Lnet/minecraft/class_1657;)Lnet/minecraft/class_22$class_23;named getPlayerSyncDataLnet/minecraft/item/map/MapState;getPlayerSyncData(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/map/MapState$PlayerUpdateTracker;
-
addBanner
- Mappings:
Namespace Name Mixin selector official aLdcr;a(Lbtv;Lfx;)Vintermediary method_108Lnet/minecraft/class_22;method_108(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Vnamed addBannerLnet/minecraft/item/map/MapState;addBanner(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
-
removeBanner
- Mappings:
Namespace Name Mixin selector official aLdcr;a(Lbsy;II)Vintermediary method_109Lnet/minecraft/class_22;method_109(Lnet/minecraft/class_1922;II)Vnamed removeBannerLnet/minecraft/item/map/MapState;removeBanner(Lnet/minecraft/world/BlockView;II)V
-
removeFrame
- Mappings:
Namespace Name Mixin selector official aLdcr;a(Lfx;I)Vintermediary method_104Lnet/minecraft/class_22;method_104(Lnet/minecraft/class_2338;I)Vnamed removeFrameLnet/minecraft/item/map/MapState;removeFrame(Lnet/minecraft/util/math/BlockPos;I)V
-
method_32365
public boolean method_32365(int int2, int int3, byte byte2)- Mappings:
Namespace Name Mixin selector official aLdcr;a(IIB)Zintermediary method_32365Lnet/minecraft/class_22;method_32365(IIB)Znamed method_32365Lnet/minecraft/item/map/MapState;method_32365(IIB)Z
-
method_32370
public void method_32370(int int2, int int3, byte byte2)- Mappings:
Namespace Name Mixin selector official bLdcr;b(IIB)Vintermediary method_32370Lnet/minecraft/class_22;method_32370(IIB)Vnamed method_32370Lnet/minecraft/item/map/MapState;method_32370(IIB)V
-
method_32372
public boolean method_32372()- Mappings:
Namespace Name Mixin selector official eLdcr;e()Zintermediary method_32372Lnet/minecraft/class_22;method_32372()Znamed method_32372Lnet/minecraft/item/map/MapState;method_32372()Z
-
method_32369
- Mappings:
Namespace Name Mixin selector official aLdcr;a([Ldco;)Vintermediary method_32369Lnet/minecraft/class_22;method_32369([Lnet/minecraft/class_20;)Vnamed method_32369Lnet/minecraft/item/map/MapState;method_32369([Lnet/minecraft/item/map/MapIcon;)V
-
method_32373
- Mappings:
Namespace Name Mixin selector official fLdcr;f()Ljava/lang/Iterable;intermediary method_32373Lnet/minecraft/class_22;method_32373()Ljava/lang/Iterable;named method_32373Lnet/minecraft/item/map/MapState;method_32373()Ljava/lang/Iterable;
-