public class FilledMapItem extends AbstractMapItem
Item.Properties
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, BLOCK_TO_ITEM, canRepair, group, properties, random
delegate
コンストラクタと説明 |
---|
FilledMapItem(Item.Properties builder) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addInformation(ItemStack stack,
World worldIn,
java.util.List<ITextComponent> tooltip,
ITooltipFlag flagIn)
allows items to add custom lines of information to the mouseover description
|
static ItemStack |
func_219992_b(World worldIn,
ItemStack stack) |
static void |
func_226642_a_(ServerWorld p_226642_0_,
ItemStack p_226642_1_) |
static int |
getColor(ItemStack stack) |
protected MapData |
getCustomMapData(ItemStack stack,
World worldIn) |
static MapData |
getData(ItemStack stack,
World worldIn) |
static MapData |
getMapData(ItemStack stack,
World worldIn) |
static int |
getMapId(ItemStack stack) |
static java.lang.String |
getMapName(int mapId) |
IPacket<?> |
getUpdatePacket(ItemStack stack,
World worldIn,
PlayerEntity player) |
void |
inventoryTick(ItemStack stack,
World worldIn,
Entity entityIn,
int itemSlot,
boolean isSelected)
Called each tick as long the item is on a player inventory.
|
void |
onCreated(ItemStack stack,
World worldIn,
PlayerEntity playerIn)
Called when item is crafted/smelted.
|
ActionResultType |
onItemUse(ItemUseContext context)
Called when this item is used when targetting a Block
|
protected static void |
scaleMap(ItemStack p_185063_0_,
World p_185063_1_,
int p_185063_2_) |
static ItemStack |
setupNewMap(World worldIn,
int worldX,
int worldZ,
byte scale,
boolean trackingPosition,
boolean unlimitedTracking) |
void |
updateMapData(World worldIn,
Entity viewer,
MapData data) |
isComplex
addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, func_219972_a, func_225519_S__, func_225520_U__, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemEnchantability, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getPropertyGetter, getRarity, getTags, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasCustomProperties, hasEffect, hitEntity, isCrossbow, isDamageable, isEnchantable, isFood, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onItemRightClick, onItemUseFinish, onPlayerStoppedUsing, rayTrace, shouldSyncTag, toString, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamaged, isShield, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
public FilledMapItem(Item.Properties builder)
public static ItemStack setupNewMap(World worldIn, int worldX, int worldZ, byte scale, boolean trackingPosition, boolean unlimitedTracking)
public static int getMapId(ItemStack stack)
public static java.lang.String getMapName(int mapId)
public static void func_226642_a_(ServerWorld p_226642_0_, ItemStack p_226642_1_)
public void inventoryTick(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected)
inventoryTick
クラス内 Item
@Nullable public IPacket<?> getUpdatePacket(ItemStack stack, World worldIn, PlayerEntity player)
getUpdatePacket
クラス内 AbstractMapItem
public void onCreated(ItemStack stack, World worldIn, PlayerEntity playerIn)
public void addInformation(ItemStack stack, @Nullable World worldIn, java.util.List<ITextComponent> tooltip, ITooltipFlag flagIn)
addInformation
クラス内 Item
public static int getColor(ItemStack stack)
public ActionResultType onItemUse(ItemUseContext context)