public class FilledMapItem extends AbstractMapItem
Item.Properties
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, BLOCK_TO_ITEM, canRepair, group, properties, random
delegate
Constructor and Description |
---|
FilledMapItem(Item.Properties builder) |
Modifier and Type | Method and Description |
---|---|
void |
addInformation(ItemStack stack,
World worldIn,
java.util.List<ITextComponent> tooltip,
ITooltipFlag flagIn) |
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) |
void |
onCreated(ItemStack stack,
World worldIn,
PlayerEntity playerIn) |
ActionResultType |
onItemUse(ItemUseContext context) |
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
in class Item
@Nullable public IPacket<?> getUpdatePacket(ItemStack stack, World worldIn, PlayerEntity player)
getUpdatePacket
in class 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
in class Item
public static int getColor(ItemStack stack)
public ActionResultType onItemUse(ItemUseContext context)