Package net.minecraft.world.storage
Class MapData
- java.lang.Object
-
- net.minecraft.world.storage.WorldSavedData
-
- net.minecraft.world.storage.MapData
-
- All Implemented Interfaces:
INBTSerializable<CompoundNBT>
public class MapData extends WorldSavedData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MapData.MapInfo
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,MapBanner>
bannerMarkers
java.util.List<MapData.MapInfo>
carriedBy
private java.util.Map<PlayerEntity,MapData.MapInfo>
carriedByPlayers
byte[]
colors
java.util.Map<java.lang.String,MapDecoration>
decorations
RegistryKey<World>
dimension
private java.util.Map<java.lang.String,MapFrame>
frameMarkers
boolean
locked
private static org.apache.logging.log4j.Logger
LOGGER
byte
scale
boolean
trackingPosition
boolean
unlimitedTracking
int
x
int
z
-
Constructor Summary
Constructors Constructor Description MapData(java.lang.String p_i2140_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addDecoration(MapDecoration.Type p_191095_1_, IWorld p_191095_2_, java.lang.String p_191095_3_, double p_191095_4_, double p_191095_6_, double p_191095_8_, ITextComponent p_191095_10_)
static void
addTargetDecoration(ItemStack p_191094_0_, BlockPos p_191094_1_, java.lang.String p_191094_2_, MapDecoration.Type p_191094_3_)
void
checkBanners(IBlockReader p_204268_1_, int p_204268_2_, int p_204268_3_)
MapData.MapInfo
getHoldingPlayer(PlayerEntity p_82568_1_)
IPacket<?>
getUpdatePacket(ItemStack p_176052_1_, IBlockReader p_176052_2_, PlayerEntity p_176052_3_)
void
load(CompoundNBT p_76184_1_)
void
lockData(MapData p_215160_1_)
void
removedFromFrame(BlockPos p_212441_1_, int p_212441_2_)
CompoundNBT
save(CompoundNBT p_189551_1_)
void
setDirty(int p_176053_1_, int p_176053_2_)
void
setOrigin(double p_176054_1_, double p_176054_3_, int p_176054_5_)
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_)
void
tickCarriedBy(PlayerEntity p_76191_1_, ItemStack p_76191_2_)
void
toggleBanner(IWorld p_204269_1_, BlockPos p_204269_2_)
-
Methods inherited from class net.minecraft.world.storage.WorldSavedData
deserializeNBT, getId, isDirty, save, serializeNBT, setDirty, setDirty
-
-
-
-
Field Detail
-
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 java.util.List<MapData.MapInfo> carriedBy
-
carriedByPlayers
private final java.util.Map<PlayerEntity,MapData.MapInfo> carriedByPlayers
-
bannerMarkers
private final java.util.Map<java.lang.String,MapBanner> bannerMarkers
-
decorations
public final java.util.Map<java.lang.String,MapDecoration> decorations
-
frameMarkers
private final java.util.Map<java.lang.String,MapFrame> frameMarkers
-
-
Method Detail
-
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 classWorldSavedData
-
save
public CompoundNBT save(CompoundNBT p_189551_1_)
- Specified by:
save
in classWorldSavedData
-
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_, java.lang.String p_191094_2_, MapDecoration.Type p_191094_3_)
-
addDecoration
private void addDecoration(MapDecoration.Type p_191095_1_, @Nullable IWorld p_191095_2_, java.lang.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_)
-
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_)
-
-