net.minecraft.world.level.saveddata.maps

public class MapItemSavedData

extends SavedData

evr
net.minecraft.world.level.saveddata.maps.MapItemSavedData
net.minecraft.class_22
net.minecraft.item.map.MapState
net.minecraft.world.level.saveddata.maps.WorldMap

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
i
LOGGER
field_25019
LOGGER
private static final int
j
MAP_SIZE
field_31832
SIZE
private static final int
k
HALF_MAP_SIZE
field_31833
SIZE_HALF
public static final int
a
MAX_SCALE
field_31831
MAX_SCALE
public static final int
b
TRACKED_DECORATION_LIMIT
field_33991
MAX_DECORATIONS
private static final String
l
FRAME_PREFIX
field_52316
FRAME_PREFIX
public final int
c
centerX
field_116
centerX
public final int
d
centerZ
field_115
centerZ
public final ResourceKey<Level>
e
dimension
field_118
dimension
private final boolean
m
trackingPosition
field_114
showDecorations
private final boolean
n
unlimitedTracking
field_113
unlimitedTracking
public final byte
f
scale
field_119
scale
public byte[]
g
colors
field_122
colors
public final boolean
h
locked
field_17403
locked
private final List<MapItemSavedData$HoldingPlayer>
o
carriedBy
field_112
updateTrackers
private final Map<Player, MapItemSavedData$HoldingPlayer>
p
carriedByPlayers
field_120
updateTrackersByPlayer
private final Map<String, MapBanner>
q
bannerMarkers
field_123
banners
final Map<String, MapDecoration>
r
decorations
field_117
decorations
private final Map<String, MapFrame>
s
frameMarkers
field_121
frames
private int
t
trackedDecorationCount
field_33992
decorationCount

Constructor summary

ModifierConstructor
private (int centerX, int centerZ, byte scale, boolean showDecorations, boolean unlimitedTracking, boolean locked, ResourceKey<Level> dimension)

Method summary

Modifier and TypeMethod
public static SavedData$Factory<MapItemSavedData>
a()
factory()
method_52611()
getPersistentStateType()
public static MapItemSavedData
a(double arg0, double arg1, byte arg2, boolean arg3, boolean arg4, aly<dhi> arg5)
createFresh(double arg0, double arg1, byte arg2, boolean arg3, boolean arg4, ResourceKey<Level> arg5)
method_32363(double arg0, double arg1, byte arg2, boolean arg3, boolean arg4, class_5321<class_1937> arg5)
of(double centerX, double centerZ, byte scale, boolean showDecorations, boolean unlimitedTracking, RegistryKey<World> dimension)
public static MapItemSavedData
a(byte arg0, boolean arg1, aly<dhi> arg2)
createForClient(byte arg0, boolean arg1, ResourceKey<Level> arg2)
method_32362(byte arg0, boolean arg1, class_5321<class_1937> arg2)
of(byte scale, boolean locked, RegistryKey<World> dimension)
public static MapItemSavedData
b(ux arg0, js$a arg1)
load(CompoundTag arg0, HolderLookup$Provider arg1)
method_32371(class_2487 arg0, class_7225$class_7874 arg1)
fromNbt(NbtCompound nbt, RegistryWrapper$WrapperLookup registries)
public CompoundTag
a(ux arg0, js$a arg1)
save(CompoundTag arg0, HolderLookup$Provider arg1)
method_75(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
public MapItemSavedData
b()
locked()
method_32361()
copy()
public MapItemSavedData
e()
scaled()
method_32364()
zoomOut()
private static Predicate<ItemStack>
a(cxp arg0)
mapMatcher(ItemStack arg0)
method_55784(class_1799 arg0)
getEqualPredicate(ItemStack stack)
public void
a(cpx arg0, cxp arg1)
tickCarriedBy(Player arg0, ItemStack arg1)
method_102(class_1657 arg0, class_1799 arg1)
update(PlayerEntity player, ItemStack stack)
private static boolean
b(cpx arg0)
hasMapInvisibilityItemEquipped(Player arg0)
method_64505(class_1657 arg0)
hasMapInvisibilityEquipment(PlayerEntity player)
private void
a(String arg0)
removeDecoration(String arg0)
method_32368(String arg0)
removeDecoration(String id)
public static void
a(cxp arg0, jh arg1, String arg2, jq<evm> arg3)
addTargetDecoration(ItemStack arg0, BlockPos arg1, String arg2, Holder<MapDecorationType> arg3)
method_110(class_1799 arg0, class_2338 arg1, String arg2, class_6880<class_9428> arg3)
addDecorationsNbt(ItemStack stack, BlockPos pos, String id, RegistryEntry<MapDecorationType> decorationType)
private void
a(jq<evm> arg0, dhj arg1, String arg2, double arg3, double arg4, double arg5, xv arg6)
addDecoration(Holder<MapDecorationType> arg0, LevelAccessor arg1, String arg2, double arg3, double arg4, double arg5, Component arg6)
method_107(class_6880<class_9428> arg0, class_1936 arg1, String arg2, double arg3, double arg4, double arg5, class_2561 arg6)
addDecoration(RegistryEntry<MapDecorationType> type, WorldAccess world, String key, double x, double z, double rotation, Text text)
private MapItemSavedData$MapDecorationLocation
a(jq<evm> arg0, dhj arg1, double arg2, float arg3, float arg4)
calculateDecorationLocationAndType(Holder<MapDecorationType> arg0, LevelAccessor arg1, double arg2, float arg3, float arg4)
method_61870(class_6880<class_9428> arg0, class_1936 arg1, double arg2, float arg3, float arg4)
getMarker(RegistryEntry<MapDecorationType> type, WorldAccess world, double rotation, float dx, float dz)
private com.mojang.datafixers.util.Pair<Holder<MapDecorationType>, Byte>
b(jq<evm> arg0, dhj arg1, double arg2, float arg3, float arg4)
playerDecorationTypeAndRotation(Holder<MapDecorationType> arg0, LevelAccessor arg1, double arg2, float arg3, float arg4)
method_61872(class_6880<class_9428> arg0, class_1936 arg1, double arg2, float arg3, float arg4)
getPlayerMarkerAndRotation(RegistryEntry<MapDecorationType> type, WorldAccess world, double rotation, float dx, float dz)
private byte
a(dhj arg0, double arg1)
calculateRotation(LevelAccessor arg0, double arg1)
method_61869(class_1936 arg0, double arg1)
getPlayerMarkerRotation(WorldAccess world, double rotation)
private static boolean
a(float arg0, float arg1)
isInsideMap(float arg0, float arg1)
method_61868(float arg0, float arg1)
isInBounds(float dx, float dz)
private Holder<MapDecorationType>
b(float arg0, float arg1)
decorationTypeForPlayerOutsideMap(float arg0, float arg1)
method_61871(float arg0, float arg1)
getPlayerMarker(float dx, float dz)
private static byte
a(float arg0)
clampMapCoordinate(float arg0)
method_61867(float arg0)
offsetToMarkerPosition(float d)
public Packet<?>
a(evp arg0, cpx arg1)
getUpdatePacket(MapId arg0, Player arg1)
method_100(class_9209 arg0, class_1657 arg1)
getPlayerMarkerPacket(MapIdComponent mapId, PlayerEntity player)
private void
a(int arg0, int arg1)
setColorsDirty(int arg0, int arg1)
method_103(int arg0, int arg1)
markDirty(int x, int z)
private void
i()
setDecorationsDirty()
method_32374()
markDecorationsDirty()
public MapItemSavedData$HoldingPlayer
a(cpx arg0)
getHoldingPlayer(Player arg0)
method_101(class_1657 arg0)
getPlayerSyncData(PlayerEntity player)
public boolean
a(dhj arg0, jh arg1)
toggleBanner(LevelAccessor arg0, BlockPos arg1)
method_108(class_1936 arg0, class_2338 arg1)
addBanner(WorldAccess world, BlockPos pos)
public void
a(dgn arg0, int arg1, int arg2)
checkBanners(BlockGetter arg0, int arg1, int arg2)
method_109(class_1922 arg0, int arg1, int arg2)
removeBanner(BlockView world, int x, int z)
public Collection<MapBanner>
f()
getBanners()
method_35503()
getBanners()
public void
a(jh arg0, int arg1)
removedFromFrame(BlockPos arg0, int arg1)
method_104(class_2338 arg0, int arg1)
removeFrame(BlockPos pos, int id)
public boolean
a(int arg0, int arg1, byte arg2)
updateColor(int arg0, int arg1, byte arg2)
method_32365(int arg0, int arg1, byte arg2)
putColor(int x, int z, byte color)
public void
b(int arg0, int arg1, byte arg2)
setColor(int arg0, int arg1, byte arg2)
method_32370(int arg0, int arg1, byte arg2)
setColor(int x, int z, byte color)
public boolean
g()
isExplorationMap()
method_32372()
hasExplorationMapDecoration()
public void
a(List<evl> arg0)
addClientSideDecorations(List<MapDecoration> arg0)
method_32369(List<class_20> arg0)
replaceDecorations(List<MapDecoration> decorations)
public Iterable<MapDecoration>
h()
getDecorations()
method_32373()
getDecorations()
public boolean
a(int arg0)
isTrackedCountOverLimit(int arg0)
method_37343(int arg0)
decorationCountNotLessThan(int decorationCount)
private static String
b(int arg0)
getFrameKey(int arg0)
method_61169(int arg0)
getFrameDecorationKey(int id)