Package net.minecraft.item
Class FilledMapItem
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Item>
-
- net.minecraft.item.Item
-
- net.minecraft.item.AbstractMapItem
-
- net.minecraft.item.FilledMapItem
-
- All Implemented Interfaces:
IItemProvider
,IForgeItem
,IForgeRegistryEntry<Item>
public class FilledMapItem extends AbstractMapItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Properties
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
-
Fields inherited from class net.minecraft.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, category, random
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description FilledMapItem(Item.Properties p_i48482_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
static ItemStack
create(World p_195952_0_, int p_195952_1_, int p_195952_2_, byte p_195952_3_, boolean p_195952_4_, boolean p_195952_5_)
private static MapData
createAndStoreSavedData(ItemStack p_195951_0_, World p_195951_1_, int p_195951_2_, int p_195951_3_, int p_195951_4_, boolean p_195951_5_, boolean p_195951_6_, RegistryKey<World> p_195951_7_)
static int
getColor(ItemStack p_190907_0_)
private BlockState
getCorrectStateForFluidBlock(World p_211698_1_, BlockState p_211698_2_, BlockPos p_211698_3_)
protected MapData
getCustomMapData(ItemStack p_195950_0_, World p_195950_1_)
static int
getMapId(ItemStack p_195949_0_)
static MapData
getOrCreateSavedData(ItemStack p_195950_0_, World p_195950_1_)
static MapData
getSavedData(ItemStack p_219994_0_, World p_219994_1_)
IPacket<?>
getUpdatePacket(ItemStack p_150911_1_, World p_150911_2_, PlayerEntity p_150911_3_)
void
inventoryTick(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
private static boolean
isLand(Biome[] p_195954_0_, int p_195954_1_, int p_195954_2_, int p_195954_3_)
static void
lockMap(World p_219992_0_, ItemStack p_219992_1_)
static java.lang.String
makeKey(int p_219993_0_)
void
onCraftedBy(ItemStack p_77622_1_, World p_77622_2_, PlayerEntity p_77622_3_)
static void
renderBiomePreviewMap(ServerWorld p_226642_0_, ItemStack p_226642_1_)
protected static void
scaleMap(ItemStack p_185063_0_, World p_185063_1_, int p_185063_2_)
void
update(World p_77872_1_, Entity p_77872_2_, MapData p_77872_3_)
ActionResultType
useOn(ItemUseContext p_195939_1_)
-
Methods inherited from class net.minecraft.item.AbstractMapItem
isComplex
-
Methods inherited from class net.minecraft.item.Item
allowdedIn, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, fillItemCategory, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, is, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, use, useOnRelease, verifyTagAfterLoad
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
-
-
-
-
Constructor Detail
-
FilledMapItem
public FilledMapItem(Item.Properties p_i48482_1_)
-
-
Method Detail
-
create
public static ItemStack create(World p_195952_0_, int p_195952_1_, int p_195952_2_, byte p_195952_3_, boolean p_195952_4_, boolean p_195952_5_)
-
getSavedData
@Nullable public static MapData getSavedData(ItemStack p_219994_0_, World p_219994_1_)
-
getOrCreateSavedData
@Nullable public static MapData getOrCreateSavedData(ItemStack p_195950_0_, World p_195950_1_)
-
getCustomMapData
@Nullable protected MapData getCustomMapData(ItemStack p_195950_0_, World p_195950_1_)
-
getMapId
public static int getMapId(ItemStack p_195949_0_)
-
createAndStoreSavedData
private static MapData createAndStoreSavedData(ItemStack p_195951_0_, World p_195951_1_, int p_195951_2_, int p_195951_3_, int p_195951_4_, boolean p_195951_5_, boolean p_195951_6_, RegistryKey<World> p_195951_7_)
-
makeKey
public static java.lang.String makeKey(int p_219993_0_)
-
getCorrectStateForFluidBlock
private BlockState getCorrectStateForFluidBlock(World p_211698_1_, BlockState p_211698_2_, BlockPos p_211698_3_)
-
isLand
private static boolean isLand(Biome[] p_195954_0_, int p_195954_1_, int p_195954_2_, int p_195954_3_)
-
renderBiomePreviewMap
public static void renderBiomePreviewMap(ServerWorld p_226642_0_, ItemStack p_226642_1_)
-
inventoryTick
public void inventoryTick(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
- Overrides:
inventoryTick
in classItem
-
getUpdatePacket
@Nullable public IPacket<?> getUpdatePacket(ItemStack p_150911_1_, World p_150911_2_, PlayerEntity p_150911_3_)
- Overrides:
getUpdatePacket
in classAbstractMapItem
-
onCraftedBy
public void onCraftedBy(ItemStack p_77622_1_, World p_77622_2_, PlayerEntity p_77622_3_)
- Overrides:
onCraftedBy
in classItem
-
appendHoverText
public void appendHoverText(ItemStack p_77624_1_, @Nullable World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
- Overrides:
appendHoverText
in classItem
-
getColor
public static int getColor(ItemStack p_190907_0_)
-
useOn
public ActionResultType useOn(ItemUseContext p_195939_1_)
-
-