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) |
private static MapData |
createMapData(ItemStack stack,
World worldIn,
int x,
int z,
int scale,
boolean trackingPosition,
boolean unlimitedTracking,
DimensionType dimensionTypeIn) |
private static boolean |
func_195954_a(Biome[] p_195954_0_,
int p_195954_1_,
int p_195954_2_,
int p_195954_3_) |
private BlockState |
func_211698_a(World worldIn,
BlockState state,
BlockPos pos) |
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, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, 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, onUse, rayTrace, shouldSyncTag, toString, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, 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)
private static MapData createMapData(ItemStack stack, World worldIn, int x, int z, int scale, boolean trackingPosition, boolean unlimitedTracking, DimensionType dimensionTypeIn)
public static java.lang.String getMapName(int mapId)
private BlockState func_211698_a(World worldIn, BlockState state, BlockPos pos)
private static boolean func_195954_a(Biome[] p_195954_0_, int p_195954_1_, int p_195954_2_, int p_195954_3_)
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)