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>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal List<MapData.MapInfo>
private final Map<PlayerEntity,
MapData.MapInfo> byte[]
final Map<String,
MapDecoration> boolean
private static final org.apache.logging.log4j.Logger
byte
boolean
boolean
int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addDecoration
(MapDecoration.Type p_191095_1_, IWorld p_191095_2_, 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_, String p_191094_2_, MapDecoration.Type p_191094_3_) void
checkBanners
(IBlockReader p_204268_1_, int p_204268_2_, int p_204268_3_) 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
void
removedFromFrame
(BlockPos p_212441_1_, int p_212441_2_) 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 Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
x
public int x -
z
public int z -
dimension
-
trackingPosition
public boolean trackingPosition -
unlimitedTracking
public boolean unlimitedTracking -
scale
public byte scale -
colors
public byte[] colors -
locked
public boolean locked -
carriedBy
-
carriedByPlayers
-
bannerMarkers
-
decorations
-
frameMarkers
-
-
Constructor Details
-
MapData
-
-
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
- Specified by:
load
in classWorldSavedData
-
save
- Specified by:
save
in classWorldSavedData
-
lockData
-
tickCarriedBy
-
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
-
toggleBanner
-
checkBanners
-
removedFromFrame
-