Class MapData

All Implemented Interfaces:
INBTSerializable<CompoundNBT>

public class MapData extends WorldSavedData
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • x

      public int x
    • z

      public int z
    • dimension

      public RegistryKey<World> dimension
    • trackingPosition

      public boolean trackingPosition
    • unlimitedTracking

      public boolean unlimitedTracking
    • scale

      public byte scale
    • colors

      public byte[] colors
    • locked

      public boolean locked
    • carriedBy

      public final List<MapData.MapInfo> carriedBy
    • carriedByPlayers

      private final Map<PlayerEntity,MapData.MapInfo> carriedByPlayers
    • bannerMarkers

      private final Map<String,MapBanner> bannerMarkers
    • decorations

      public final Map<String,MapDecoration> decorations
    • frameMarkers

      private final Map<String,MapFrame> frameMarkers
  • Constructor Details

    • MapData

      public MapData(String p_i2140_1_)
  • Method Details

    • setProperties

      public void setProperties(int p_237241_1_, int p_237241_2_, int p_237241_3_, boolean p_237241_4_, boolean p_237241_5_, RegistryKey<World> p_237241_6_)
    • setOrigin

      public void setOrigin(double p_176054_1_, double p_176054_3_, int p_176054_5_)
    • load

      public void load(CompoundNBT p_76184_1_)
      Specified by:
      load in class WorldSavedData
    • save

      public CompoundNBT save(CompoundNBT p_189551_1_)
      Specified by:
      save in class WorldSavedData
    • lockData

      public void lockData(MapData p_215160_1_)
    • tickCarriedBy

      public void tickCarriedBy(PlayerEntity p_76191_1_, ItemStack p_76191_2_)
    • addTargetDecoration

      public static void addTargetDecoration(ItemStack p_191094_0_, BlockPos p_191094_1_, String p_191094_2_, MapDecoration.Type p_191094_3_)
    • addDecoration

      private void addDecoration(MapDecoration.Type p_191095_1_, @Nullable IWorld p_191095_2_, String p_191095_3_, double p_191095_4_, double p_191095_6_, double p_191095_8_, @Nullable ITextComponent p_191095_10_)
    • getUpdatePacket

      @Nullable public IPacket<?> getUpdatePacket(ItemStack p_176052_1_, IBlockReader p_176052_2_, PlayerEntity p_176052_3_)
    • setDirty

      public void setDirty(int p_176053_1_, int p_176053_2_)
    • getHoldingPlayer

      public MapData.MapInfo getHoldingPlayer(PlayerEntity p_82568_1_)
    • toggleBanner

      public void toggleBanner(IWorld p_204269_1_, BlockPos p_204269_2_)
    • checkBanners

      public void checkBanners(IBlockReader p_204268_1_, int p_204268_2_, int p_204268_3_)
    • removedFromFrame

      public void removedFromFrame(BlockPos p_212441_1_, int p_212441_2_)