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 classMapState.class_5637classMapState.PlayerUpdateTracker -
Field Summary
Fields Modifier and Type Field Description private Map<String,MapBannerMarker>bannersbyte[]colorsRegistryKey<World>dimensionprivate static Loggerfield_25019private Map<String,MapFrameMarker>framesprivate Map<String,MapIcon>iconsbooleanlockedbytescaleprivate booleanshowIconsprivate booleanunlimitedTrackingprivate List<MapState.PlayerUpdateTracker>updateTrackersprivate Map<PlayerEntity,MapState.PlayerUpdateTracker>updateTrackersByPlayerintxCenterintzCenter -
Constructor Summary
Constructors Modifier Constructor Description privateMapState(int int2, int int3, byte byte2, boolean bool, boolean bool2, boolean bool3, RegistryKey<World> registryKey) -
Method Summary
Modifier and Type Method Description voidaddBanner(WorldAccess world, BlockPos pos)static voidaddDecorationsTag(ItemStack stack, BlockPos pos, String id, MapIcon.Type type)private voidaddIcon(MapIcon.Type type, WorldAccess world, String key, double x, double z, double rotation, Text text)Packet<?>getPlayerMarkerPacket(int int2, PlayerEntity playerEntity)MapState.PlayerUpdateTrackergetPlayerSyncData(PlayerEntity player)private voidmarkDirty(int x, int z)MapStatemethod_32361()static MapStatemethod_32362(byte byte2, boolean bool, RegistryKey<World> registryKey)static MapStatemethod_32363(double double2, double double3, byte byte2, boolean bool, boolean bool2, RegistryKey<World> registryKey)MapStatemethod_32364(int int2)booleanmethod_32365(int int2, int int3, byte byte2)private voidmethod_32368(String string)voidmethod_32369(MapIcon[] mapIcon)voidmethod_32370(int int2, int int3, byte byte2)static MapStatemethod_32371(CompoundTag compoundTag)booleanmethod_32372()Iterable<MapIcon>method_32373()private voidmethod_32374()voidremoveBanner(BlockView world, int x, int z)voidremoveFrame(BlockPos pos, int id)CompoundTagtoTag(CompoundTag tag)voidupdate(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:
toTagin 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
-