Package net.minecraft.item.map
Class MapState
java.lang.Object
net.minecraft.world.PersistentState
net.minecraft.item.map.MapState
public class MapState extends PersistentState
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MapState.class_5637
class
MapState.PlayerUpdateTracker
-
Field Summary
Fields Modifier and Type Field Description private Map<String,MapBannerMarker>
banners
byte[]
colors
RegistryKey<World>
dimension
private static Logger
field_25019
private Map<String,MapFrameMarker>
frames
private Map<String,MapIcon>
icons
boolean
locked
byte
scale
private boolean
showIcons
private boolean
unlimitedTracking
private List<MapState.PlayerUpdateTracker>
updateTrackers
private Map<PlayerEntity,MapState.PlayerUpdateTracker>
updateTrackersByPlayer
int
xCenter
int
zCenter
-
Constructor Summary
Constructors Modifier Constructor Description private
MapState(int int2, int int3, byte byte2, boolean bool, boolean bool2, boolean bool3, RegistryKey<World> registryKey)
-
Method Summary
Modifier and Type Method Description void
addBanner(WorldAccess world, BlockPos pos)
static void
addDecorationsTag(ItemStack stack, BlockPos pos, String id, MapIcon.Type type)
private void
addIcon(MapIcon.Type type, WorldAccess world, String key, double x, double z, double rotation, Text text)
Packet<?>
getPlayerMarkerPacket(int int2, PlayerEntity playerEntity)
MapState.PlayerUpdateTracker
getPlayerSyncData(PlayerEntity player)
private void
markDirty(int x, int z)
MapState
method_32361()
static MapState
method_32362(byte byte2, boolean bool, RegistryKey<World> registryKey)
static MapState
method_32363(double double2, double double3, byte byte2, boolean bool, boolean bool2, RegistryKey<World> registryKey)
MapState
method_32364(int int2)
boolean
method_32365(int int2, int int3, byte byte2)
private void
method_32368(String string)
void
method_32369(MapIcon[] mapIcon)
void
method_32370(int int2, int int3, byte byte2)
static MapState
method_32371(CompoundTag compoundTag)
boolean
method_32372()
Iterable<MapIcon>
method_32373()
private void
method_32374()
void
removeBanner(BlockView world, int x, int z)
void
removeFrame(BlockPos pos, int id)
CompoundTag
toTag(CompoundTag tag)
void
update(PlayerEntity player, ItemStack stack)
Methods inherited from class net.minecraft.world.PersistentState
isDirty, markDirty, save, setDirty
-
Field Details
-
field_25019
-
xCenter
public final int xCenter -
zCenter
public final int zCenter -
dimension
-
showIcons
private final boolean showIcons -
unlimitedTracking
private final boolean unlimitedTracking -
scale
public final byte scale -
colors
public byte[] colors -
locked
public final boolean locked -
updateTrackers
-
updateTrackersByPlayer
-
banners
-
icons
-
frames
-
-
Constructor Details
-
MapState
private MapState(int int2, int int3, byte byte2, boolean bool, boolean bool2, boolean bool3, RegistryKey<World> registryKey)
-
-
Method Details
-
method_32363
public static MapState method_32363(double double2, double double3, byte byte2, boolean bool, boolean bool2, RegistryKey<World> registryKey) -
method_32362
@Environment(CLIENT) public static MapState method_32362(byte byte2, boolean bool, RegistryKey<World> registryKey) -
method_32371
-
toTag
- Specified by:
toTag
in classPersistentState
-
method_32361
-
method_32364
-
update
-
method_32368
-
addDecorationsTag
-
addIcon
private void addIcon(MapIcon.Type type, @Nullable WorldAccess world, String key, double x, double z, double rotation, @Nullable Text text) -
getPlayerMarkerPacket
-
markDirty
private void markDirty(int x, int z) -
method_32374
private void method_32374() -
getPlayerSyncData
-
addBanner
-
removeBanner
-
removeFrame
-
method_32365
public boolean method_32365(int int2, int int3, byte byte2) -
method_32370
public void method_32370(int int2, int int3, byte byte2) -
method_32372
public boolean method_32372() -
method_32369
-
method_32373
-