public class MapData extends WorldSavedData
Modifier and Type | Class and Description |
---|---|
class |
MapData.MapInfo |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,MapBanner> |
banners |
byte[] |
colors |
DimensionType |
dimension |
private java.util.Map<java.lang.String,MapFrame> |
frames |
boolean |
locked |
java.util.Map<java.lang.String,MapDecoration> |
mapDecorations |
java.util.List<MapData.MapInfo> |
playersArrayList |
private java.util.Map<PlayerEntity,MapData.MapInfo> |
playersHashMap |
byte |
scale |
boolean |
trackingPosition |
boolean |
unlimitedTracking |
int |
xCenter |
int |
zCenter |
Constructor and Description |
---|
MapData(java.lang.String mapname) |
Modifier and Type | Method and Description |
---|---|
static void |
addTargetDecoration(ItemStack map,
BlockPos target,
java.lang.String decorationName,
MapDecoration.Type type) |
void |
calculateMapCenter(double x,
double z,
int mapScale) |
void |
copyFrom(MapData mapDataIn) |
void |
func_212440_a(int x,
int z,
int scaleIn,
boolean trackingPositionIn,
boolean unlimitedTrackingIn,
DimensionType dimensionTypeIn) |
MapData.MapInfo |
getMapInfo(PlayerEntity player) |
IPacket<?> |
getMapPacket(ItemStack mapStack,
IBlockReader worldIn,
PlayerEntity player) |
void |
read(CompoundNBT nbt) |
void |
removeItemFrame(BlockPos pos,
int entityIdIn) |
void |
removeStaleBanners(IBlockReader p_204268_1_,
int p_204268_2_,
int p_204268_3_) |
void |
tryAddBanner(IWorld p_204269_1_,
BlockPos p_204269_2_) |
private void |
updateDecorations(MapDecoration.Type type,
IWorld worldIn,
java.lang.String decorationName,
double worldX,
double worldZ,
double rotationIn,
ITextComponent p_191095_10_) |
void |
updateMapData(int x,
int y) |
void |
updateVisiblePlayers(PlayerEntity player,
ItemStack mapStack) |
CompoundNBT |
write(CompoundNBT compound) |
deserializeNBT, getName, isDirty, markDirty, save, serializeNBT, setDirty
public int xCenter
public int zCenter
public DimensionType dimension
public boolean trackingPosition
public boolean unlimitedTracking
public byte scale
public byte[] colors
public boolean locked
public final java.util.List<MapData.MapInfo> playersArrayList
private final java.util.Map<PlayerEntity,MapData.MapInfo> playersHashMap
private final java.util.Map<java.lang.String,MapBanner> banners
public final java.util.Map<java.lang.String,MapDecoration> mapDecorations
private final java.util.Map<java.lang.String,MapFrame> frames
public void func_212440_a(int x, int z, int scaleIn, boolean trackingPositionIn, boolean unlimitedTrackingIn, DimensionType dimensionTypeIn)
public void calculateMapCenter(double x, double z, int mapScale)
public void read(CompoundNBT nbt)
read
in class WorldSavedData
public CompoundNBT write(CompoundNBT compound)
write
in class WorldSavedData
public void copyFrom(MapData mapDataIn)
public void updateVisiblePlayers(PlayerEntity player, ItemStack mapStack)
public static void addTargetDecoration(ItemStack map, BlockPos target, java.lang.String decorationName, MapDecoration.Type type)
private void updateDecorations(MapDecoration.Type type, @Nullable IWorld worldIn, java.lang.String decorationName, double worldX, double worldZ, double rotationIn, @Nullable ITextComponent p_191095_10_)
@Nullable public IPacket<?> getMapPacket(ItemStack mapStack, IBlockReader worldIn, PlayerEntity player)
public void updateMapData(int x, int y)
public MapData.MapInfo getMapInfo(PlayerEntity player)
public void removeStaleBanners(IBlockReader p_204268_1_, int p_204268_2_, int p_204268_3_)
public void removeItemFrame(BlockPos pos, int entityIdIn)