Class FilledMapItem

All Implemented Interfaces:
ItemConvertible, ToggleableFeature

public class FilledMapItem extends NetworkSyncedItem
Mappings:
Namespace Name
named net/minecraft/item/FilledMapItem
intermediary net/minecraft/class_1806
official cvc
  • Field Details

    • field_30907

      public static final int field_30907
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30907 Lnet/minecraft/item/FilledMapItem;field_30907:I
      intermediary field_30907 Lnet/minecraft/class_1806;field_30907:I
      official a Lcvc;a:I
    • field_30908

      public static final int field_30908
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30908 Lnet/minecraft/item/FilledMapItem;field_30908:I
      intermediary field_30908 Lnet/minecraft/class_1806;field_30908:I
      official b Lcvc;b:I
  • Constructor Details

    • FilledMapItem

      public FilledMapItem(Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
      intermediary <init> Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)V
      official <init> Lcul;<init>(Lcul$a;)V
  • Method Details

    • createMap

      public static ItemStack createMap(World world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking)
      Mappings:
      Namespace Name Mixin selector
      named createMap Lnet/minecraft/item/FilledMapItem;createMap(Lnet/minecraft/world/World;IIBZZ)Lnet/minecraft/item/ItemStack;
      intermediary method_8005 Lnet/minecraft/class_1806;method_8005(Lnet/minecraft/class_1937;IIBZZ)Lnet/minecraft/class_1799;
      official a Lcvc;a(Ldcw;IIBZZ)Lcuq;
    • getMapState

      @Nullable public static @Nullable MapState getMapState(@Nullable @Nullable MapIdComponent id, World world)
      Mappings:
      Namespace Name Mixin selector
      named getMapState Lnet/minecraft/item/FilledMapItem;getMapState(Lnet/minecraft/component/type/MapIdComponent;Lnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;
      intermediary method_7997 Lnet/minecraft/class_1806;method_7997(Lnet/minecraft/class_9209;Lnet/minecraft/class_1937;)Lnet/minecraft/class_22;
      official a Lcvc;a(Leqr;Ldcw;)Leqt;
    • getMapState

      @Nullable public static @Nullable MapState getMapState(ItemStack map, World world)
      Mappings:
      Namespace Name Mixin selector
      named getMapState Lnet/minecraft/item/FilledMapItem;getMapState(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;
      intermediary method_8001 Lnet/minecraft/class_1806;method_8001(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;)Lnet/minecraft/class_22;
      official b Lcvc;b(Lcuq;Ldcw;)Leqt;
    • allocateMapId

      private static MapIdComponent allocateMapId(World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension)
      Mappings:
      Namespace Name Mixin selector
      named allocateMapId Lnet/minecraft/item/FilledMapItem;allocateMapId(Lnet/minecraft/world/World;IIIZZLnet/minecraft/registry/RegistryKey;)Lnet/minecraft/component/type/MapIdComponent;
      intermediary method_32349 Lnet/minecraft/class_1806;method_32349(Lnet/minecraft/class_1937;IIIZZLnet/minecraft/class_5321;)Lnet/minecraft/class_9209;
      official a Lcvc;a(Ldcw;IIIZZLakq;)Leqr;
    • updateColors

      public void updateColors(World world, Entity entity, MapState state)
      Mappings:
      Namespace Name Mixin selector
      named updateColors Lnet/minecraft/item/FilledMapItem;updateColors(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;Lnet/minecraft/item/map/MapState;)V
      intermediary method_7998 Lnet/minecraft/class_1806;method_7998(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;Lnet/minecraft/class_22;)V
      official a Lcvc;a(Ldcw;Lbsr;Leqt;)V
    • getFluidStateIfVisible

      private BlockState getFluidStateIfVisible(World world, BlockState state, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getFluidStateIfVisible Lnet/minecraft/item/FilledMapItem;getFluidStateIfVisible(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
      intermediary method_7995 Lnet/minecraft/class_1806;method_7995(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      official a Lcvc;a(Ldcw;Ldtc;Ljd;)Ldtc;
    • isAquaticBiome

      private static boolean isAquaticBiome(boolean[] biomes, int x, int z)
      Mappings:
      Namespace Name Mixin selector
      named isAquaticBiome Lnet/minecraft/item/FilledMapItem;isAquaticBiome([ZII)Z
      intermediary method_38988 Lnet/minecraft/class_1806;method_38988([ZII)Z
      official a Lcvc;a([ZII)Z
    • fillExplorationMap

      public static void fillExplorationMap(ServerWorld world, ItemStack map)
      Mappings:
      Namespace Name Mixin selector
      named fillExplorationMap Lnet/minecraft/item/FilledMapItem;fillExplorationMap(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)V
      intermediary method_8002 Lnet/minecraft/class_1806;method_8002(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)V
      official a Lcvc;a(Laqu;Lcuq;)V
    • inventoryTick

      public void inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)
      Called on both the client and the server every tick if the item is in the player's inventory.

      This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using World.isClient.

      Overrides:
      inventoryTick in class Item
      Parameters:
      entity - the entity holding the item; usually a player
      selected - whether the item is in the selected hotbar slot
      Mappings:
      Namespace Name Mixin selector
      named inventoryTick Lnet/minecraft/item/Item;inventoryTick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;IZ)V
      intermediary method_7888 Lnet/minecraft/class_1792;method_7888(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;IZ)V
      official a Lcul;a(Lcuq;Ldcw;Lbsr;IZ)V
    • createSyncPacket

      @Nullable public @Nullable Packet<?> createSyncPacket(ItemStack stack, World world, PlayerEntity player)
      Creates a packet that syncs additional item data to the client.
      Overrides:
      createSyncPacket in class NetworkSyncedItem
      Mappings:
      Namespace Name Mixin selector
      named createSyncPacket Lnet/minecraft/item/NetworkSyncedItem;createSyncPacket(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/network/packet/Packet;
      intermediary method_7757 Lnet/minecraft/class_1762;method_7757(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;)Lnet/minecraft/class_2596;
      official a Lcsz;a(Lcuq;Ldcw;Lcmx;)Lzg;
    • onCraft

      public void onCraft(ItemStack stack, World world)
      Called when the item is made by crafting, smelting, smithing, etc.
      Overrides:
      onCraft in class Item
      Mappings:
      Namespace Name Mixin selector
      named onCraft Lnet/minecraft/item/Item;onCraft(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;)V
      intermediary method_7843 Lnet/minecraft/class_1792;method_7843(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;)V
      official a Lcul;a(Lcuq;Ldcw;)V
    • scale

      private static void scale(ItemStack map, World world)
      Mappings:
      Namespace Name Mixin selector
      named scale Lnet/minecraft/item/FilledMapItem;scale(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;)V
      intermediary method_7996 Lnet/minecraft/class_1806;method_7996(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;)V
      official c Lcvc;c(Lcuq;Ldcw;)V
    • copyMap

      public static void copyMap(World world, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named copyMap Lnet/minecraft/item/FilledMapItem;copyMap(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)V
      intermediary method_17442 Lnet/minecraft/class_1806;method_17442(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;)V
      official a Lcvc;a(Ldcw;Lcuq;)V
    • appendTooltip

      public void appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type)
      Called by the client to append tooltips to an item. Subclasses can override this and add custom tooltips to tooltip list.
      Overrides:
      appendTooltip in class Item
      Parameters:
      tooltip - the list of tooltips to show
      Mappings:
      Namespace Name Mixin selector
      named appendTooltip Lnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/Item$TooltipContext;Ljava/util/List;Lnet/minecraft/item/tooltip/TooltipType;)V
      intermediary method_7851 Lnet/minecraft/class_1792;method_7851(Lnet/minecraft/class_1799;Lnet/minecraft/class_1792$class_9635;Ljava/util/List;Lnet/minecraft/class_1836;)V
      official a Lcul;a(Lcuq;Lcul$b;Ljava/util/List;Lcwm;)V
    • getIdText

      public static Text getIdText(MapIdComponent id)
      Mappings:
      Namespace Name Mixin selector
      named getIdText Lnet/minecraft/item/FilledMapItem;getIdText(Lnet/minecraft/component/type/MapIdComponent;)Lnet/minecraft/text/Text;
      intermediary method_53836 Lnet/minecraft/class_1806;method_53836(Lnet/minecraft/class_9209;)Lnet/minecraft/class_2561;
      official a Lcvc;a(Leqr;)Lwz;
    • useOnBlock

      public ActionResult useOnBlock(ItemUsageContext context)
      Called when an item is used on a block.

      This method is called on both the logical client and logical server, so take caution when using this method. The logical side can be checked using context.getWorld().isClient().

      Overrides:
      useOnBlock in class Item
      Parameters:
      context - the usage context
      Returns:
      an action result that specifies if using the item on a block was successful.
      Mappings:
      Namespace Name Mixin selector
      named useOnBlock Lnet/minecraft/item/Item;useOnBlock(Lnet/minecraft/item/ItemUsageContext;)Lnet/minecraft/util/ActionResult;
      intermediary method_7884 Lnet/minecraft/class_1792;method_7884(Lnet/minecraft/class_1838;)Lnet/minecraft/class_1269;
      official a Lcul;a(Lcyf;)Lbqr;