类 FilledMapItem
- java.lang.Object
-
- net.minecraft.item.Item
-
- net.minecraft.item.NetworkSyncedItem
-
- net.minecraft.item.FilledMapItem
-
- 所有已实现的接口:
ItemConvertible
public class FilledMapItem extends NetworkSyncedItem
- Mappings:
Namespace Name official bpxintermediary net/minecraft/class_1806named net/minecraft/item/FilledMapItem
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.item.Item
Item.Settings
-
-
字段概要
字段 修饰符和类型 字段 说明 private static intDEFAULT_MAP_COLORstatic intfield_30907static intfield_30908private static StringMAP_KEY-
从类继承的字段 net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, field_30888, field_30889, group
-
-
构造器概要
构造器 构造器 说明 FilledMapItem(Item.Settings settings)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private static intallocateMapId(World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension)voidappendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)static voidcopyMap(World world, ItemStack stack)static ItemStackcreateMap(World world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking)private static voidcreateMapState(ItemStack stack, World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension)@Nullable Packet<?>createSyncPacket(ItemStack stack, World world, PlayerEntity player)Creates a packet that syncs additional item data to the client.static voidfillExplorationMap(ServerWorld world, ItemStack map)private BlockStategetFluidStateIfVisible(World world, BlockState state, BlockPos pos)static intgetMapColor(ItemStack stack)static @Nullable IntegergetMapId(ItemStack stack)static StringgetMapName(int mapId)static @Nullable MapStategetMapState(@Nullable Integer id, World world)static @Nullable MapStategetOrCreateMapState(ItemStack map, World world)private static booleanhasPositiveDepth(Biome[] biomes, int scale, int x, int z)voidinventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)voidonCraft(ItemStack stack, World world, PlayerEntity player)Called when a player acquires the item by crafting, smelting, smithing, etc.private static voidscale(ItemStack map, World world, int amount)private static voidsetMapId(ItemStack stack, int id)voidupdateColors(World world, Entity entity, MapState state)ActionResultuseOnBlock(ItemUsageContext context)Called when an item is used on a block.-
从类继承的方法 net.minecraft.item.NetworkSyncedItem
isNetworkSynced
-
从类继承的方法 net.minecraft.item.Item
appendStacks, asItem, byRawId, canBeNested, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getEquipSound, getFoodComponent, getGroup, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTooltipData, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, isDamageable, isEnchantable, isFireproof, isFood, isIn, isItemBarVisible, isSuitableFor, isUsedOnRelease, onClicked, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postHit, postMine, postProcessNbt, raycast, shouldSyncTagToClient, toString, usageTick, use, useOnEntity
-
-
-
-
字段详细资料
-
field_30907
public static final int field_30907
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLbpx;a:Iintermediary field_30907Lnet/minecraft/class_1806;field_30907:Inamed field_30907Lnet/minecraft/item/FilledMapItem;field_30907:I
-
field_30908
public static final int field_30908
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLbpx;b:Iintermediary field_30908Lnet/minecraft/class_1806;field_30908:Inamed field_30908Lnet/minecraft/item/FilledMapItem;field_30908:I
-
DEFAULT_MAP_COLOR
private static final int DEFAULT_MAP_COLOR
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLbpx;c:Iintermediary field_30909Lnet/minecraft/class_1806;field_30909:Inamed DEFAULT_MAP_COLORLnet/minecraft/item/FilledMapItem;DEFAULT_MAP_COLOR:I
-
-
构造器详细资料
-
FilledMapItem
public FilledMapItem(Item.Settings settings)
- Mappings:
Namespace Name Mixin selector official <init>Lbpn;<init>(Lbpn$a;)Vintermediary <init>Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)Vnamed <init>Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
-
-
方法详细资料
-
createMap
public static ItemStack createMap(World world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(Lbvr;IIBZZ)Lbpr;intermediary method_8005Lnet/minecraft/class_1806;method_8005(Lnet/minecraft/class_1937;IIBZZ)Lnet/minecraft/class_1799;named createMapLnet/minecraft/item/FilledMapItem;createMap(Lnet/minecraft/world/World;IIBZZ)Lnet/minecraft/item/ItemStack;
-
getMapState
@Nullable public static @Nullable MapState getMapState(@Nullable @Nullable Integer id, World world)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(Ljava/lang/Integer;Lbvr;)Ldgs;intermediary method_7997Lnet/minecraft/class_1806;method_7997(Ljava/lang/Integer;Lnet/minecraft/class_1937;)Lnet/minecraft/class_22;named getMapStateLnet/minecraft/item/FilledMapItem;getMapState(Ljava/lang/Integer;Lnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;
-
getOrCreateMapState
@Nullable public static @Nullable MapState getOrCreateMapState(ItemStack map, World world)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(Lbpr;Lbvr;)Ldgs;intermediary method_8001Lnet/minecraft/class_1806;method_8001(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;)Lnet/minecraft/class_22;named getOrCreateMapStateLnet/minecraft/item/FilledMapItem;getOrCreateMapState(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;
-
getMapId
@Nullable public static @Nullable Integer getMapId(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official dLbpx;d(Lbpr;)Ljava/lang/Integer;intermediary method_8003Lnet/minecraft/class_1806;method_8003(Lnet/minecraft/class_1799;)Ljava/lang/Integer;named getMapIdLnet/minecraft/item/FilledMapItem;getMapId(Lnet/minecraft/item/ItemStack;)Ljava/lang/Integer;
-
allocateMapId
private static int allocateMapId(World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(Lbvr;IIIZZLwo;)Iintermediary method_32349Lnet/minecraft/class_1806;method_32349(Lnet/minecraft/class_1937;IIIZZLnet/minecraft/class_5321;)Inamed allocateMapIdLnet/minecraft/item/FilledMapItem;allocateMapId(Lnet/minecraft/world/World;IIIZZLnet/minecraft/util/registry/RegistryKey;)I
-
setMapId
private static void setMapId(ItemStack stack, int id)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(Lbpr;I)Vintermediary method_32348Lnet/minecraft/class_1806;method_32348(Lnet/minecraft/class_1799;I)Vnamed setMapIdLnet/minecraft/item/FilledMapItem;setMapId(Lnet/minecraft/item/ItemStack;I)V
-
createMapState
private static void createMapState(ItemStack stack, World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(Lbpr;Lbvr;IIIZZLwo;)Vintermediary method_8000Lnet/minecraft/class_1806;method_8000(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;IIIZZLnet/minecraft/class_5321;)Vnamed createMapStateLnet/minecraft/item/FilledMapItem;createMapState(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;IIIZZLnet/minecraft/util/registry/RegistryKey;)V
-
getMapName
public static String getMapName(int mapId)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(I)Ljava/lang/String;intermediary method_17440Lnet/minecraft/class_1806;method_17440(I)Ljava/lang/String;named getMapNameLnet/minecraft/item/FilledMapItem;getMapName(I)Ljava/lang/String;
-
updateColors
public void updateColors(World world, Entity entity, MapState state)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(Lbvr;Lasl;Ldgs;)Vintermediary method_7998Lnet/minecraft/class_1806;method_7998(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;Lnet/minecraft/class_22;)Vnamed updateColorsLnet/minecraft/item/FilledMapItem;updateColors(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;Lnet/minecraft/item/map/MapState;)V
-
getFluidStateIfVisible
private BlockState getFluidStateIfVisible(World world, BlockState state, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(Lbvr;Lcjr;Lgb;)Lcjr;intermediary method_7995Lnet/minecraft/class_1806;method_7995(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getFluidStateIfVisibleLnet/minecraft/item/FilledMapItem;getFluidStateIfVisible(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
hasPositiveDepth
private static boolean hasPositiveDepth(Biome[] biomes, int scale, int x, int z)
- Mappings:
Namespace Name Mixin selector official aLbpx;a([Lbwq;III)Zintermediary method_8004Lnet/minecraft/class_1806;method_8004([Lnet/minecraft/class_1959;III)Znamed hasPositiveDepthLnet/minecraft/item/FilledMapItem;hasPositiveDepth([Lnet/minecraft/world/biome/Biome;III)Z
-
fillExplorationMap
public static void fillExplorationMap(ServerWorld world, ItemStack map)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(Labj;Lbpr;)Vintermediary method_8002Lnet/minecraft/class_1806;method_8002(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Vnamed fillExplorationMapLnet/minecraft/item/FilledMapItem;fillExplorationMap(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)V
-
inventoryTick
public void inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)
- 覆盖:
inventoryTick在类中Item- Mappings:
Namespace Name Mixin selector official aLbpn;a(Lbpr;Lbvr;Lasl;IZ)Vintermediary method_7888Lnet/minecraft/class_1792;method_7888(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;IZ)Vnamed inventoryTickLnet/minecraft/item/Item;inventoryTick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;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.- 覆盖:
createSyncPacket在类中NetworkSyncedItem- Mappings:
Namespace Name Mixin selector official aLbog;a(Lbpr;Lbvr;Lbjf;)Lpf;intermediary method_7757Lnet/minecraft/class_1762;method_7757(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;)Lnet/minecraft/class_2596;named createSyncPacketLnet/minecraft/item/NetworkSyncedItem;createSyncPacket(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/network/Packet;
-
onCraft
public void onCraft(ItemStack stack, World world, PlayerEntity player)
Called when a player acquires the item by crafting, smelting, smithing, etc.- 覆盖:
onCraft在类中Item- Mappings:
Namespace Name Mixin selector official bLbpn;b(Lbpr;Lbvr;Lbjf;)Vintermediary method_7843Lnet/minecraft/class_1792;method_7843(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;)Vnamed onCraftLnet/minecraft/item/Item;onCraft(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)V
-
scale
private static void scale(ItemStack map, World world, int amount)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(Lbpr;Lbvr;I)Vintermediary method_7996Lnet/minecraft/class_1806;method_7996(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;I)Vnamed scaleLnet/minecraft/item/FilledMapItem;scale(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;I)V
-
copyMap
public static void copyMap(World world, ItemStack stack)
- Mappings:
Namespace Name Mixin selector official aLbpx;a(Lbvr;Lbpr;)Vintermediary method_17442Lnet/minecraft/class_1806;method_17442(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;)Vnamed copyMapLnet/minecraft/item/FilledMapItem;copyMap(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)V
-
appendTooltip
public void appendTooltip(ItemStack stack, @Nullable @Nullable World world, List<Text> tooltip, TooltipContext context)
- 覆盖:
appendTooltip在类中Item- Mappings:
Namespace Name Mixin selector official aLbpn;a(Lbpr;Lbvr;Ljava/util/List;Lbre;)Vintermediary method_7851Lnet/minecraft/class_1792;method_7851(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Ljava/util/List;Lnet/minecraft/class_1836;)Vnamed appendTooltipLnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/item/TooltipContext;)V
-
getMapColor
public static int getMapColor(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official kLbpx;k(Lbpr;)Iintermediary method_7999Lnet/minecraft/class_1806;method_7999(Lnet/minecraft/class_1799;)Inamed getMapColorLnet/minecraft/item/FilledMapItem;getMapColor(Lnet/minecraft/item/ItemStack;)I
-
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().- 覆盖:
useOnBlock在类中Item- 参数:
context- the usage context- 返回:
- an action result that specifies if using the item on a block was successful.
- Mappings:
Namespace Name Mixin selector official aLbpn;a(Lbrt;)Larg;intermediary method_7884Lnet/minecraft/class_1792;method_7884(Lnet/minecraft/class_1838;)Lnet/minecraft/class_1269;named useOnBlockLnet/minecraft/item/Item;useOnBlock(Lnet/minecraft/item/ItemUsageContext;)Lnet/minecraft/util/ActionResult;
-
-