public class ItemMapLocation extends ItemBC_Neptune implements IMapLocation
net.minecraft.item.Item.ToolMaterial
IMapLocation.MapLocationType
id
Constructor and Description |
---|
ItemMapLocation(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
addInformation(net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.EntityPlayer player,
java.util.List<java.lang.String> strings,
boolean advanced) |
void |
addModelVariants(gnu.trove.map.hash.TIntObjectHashMap<net.minecraft.client.renderer.block.model.ModelResourceLocation> variants)
Sets up all of the model information for this item.
|
static IBox |
getAreaBox(net.minecraft.item.ItemStack item) |
IBox |
getBox(net.minecraft.item.ItemStack item)
This function can be used for SPOT and AREA types.
|
int |
getItemStackLimit(net.minecraft.item.ItemStack stack) |
java.lang.String |
getName(net.minecraft.item.ItemStack item) |
java.util.List<net.minecraft.util.math.BlockPos> |
getPath(net.minecraft.item.ItemStack item)
This function can be used for SPOT and PATH types.
|
net.minecraft.util.math.BlockPos |
getPoint(net.minecraft.item.ItemStack item)
This function can be used for SPOT types.
|
static IBox |
getPointBox(net.minecraft.item.ItemStack item) |
static net.minecraft.util.EnumFacing |
getPointFace(net.minecraft.item.ItemStack stack) |
net.minecraft.util.EnumFacing |
getPointSide(net.minecraft.item.ItemStack item)
This function can be used for SPOT types only.
|
IZone |
getZone(net.minecraft.item.ItemStack item)
This function can be used for SPOT, AREA and ZONE types.
|
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand) |
net.minecraft.util.EnumActionResult |
onItemUseFirst(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ,
net.minecraft.util.EnumHand hand) |
boolean |
setName(net.minecraft.item.ItemStack item,
java.lang.String name) |
static void |
setZone(net.minecraft.item.ItemStack item,
ZonePlan plan) |
id
addPropertyOverride, canApplyAtEnchantingTable, canDestroyBlockInCreative, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDefaultInstance, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getHighlightTip, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMetadata, getNBTShareTag, getPropertyGetter, getRarity, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getStrVsBlock, getSubItems, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hasEffect, hitEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isEnchantable, isFull3D, isMap, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFinish, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, rayTrace, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setUnlocalizedName, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addVariant, init, postRegisterClient
public int getItemStackLimit(net.minecraft.item.ItemStack stack)
getItemStackLimit
in class net.minecraft.item.Item
public void addModelVariants(gnu.trove.map.hash.TIntObjectHashMap<net.minecraft.client.renderer.block.model.ModelResourceLocation> variants)
IItemBuildCraft
IItemBuildCraft.addVariant(TIntObjectHashMap, int, String)
to help get
everything correct.addModelVariants
in interface IItemBuildCraft
public void addInformation(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, java.util.List<java.lang.String> strings, boolean advanced)
addInformation
in class net.minecraft.item.Item
public net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World world, net.minecraft.entity.player.EntityPlayer player, net.minecraft.util.EnumHand hand)
onItemRightClick
in class net.minecraft.item.Item
public net.minecraft.util.EnumActionResult onItemUseFirst(net.minecraft.entity.player.EntityPlayer player, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.EnumFacing side, float hitX, float hitY, float hitZ, net.minecraft.util.EnumHand hand)
onItemUseFirst
in class net.minecraft.item.Item
public static IBox getAreaBox(@Nonnull net.minecraft.item.ItemStack item)
public static IBox getPointBox(@Nonnull net.minecraft.item.ItemStack item)
public static net.minecraft.util.EnumFacing getPointFace(@Nonnull net.minecraft.item.ItemStack stack)
public IBox getBox(@Nonnull net.minecraft.item.ItemStack item)
IMapLocation
getBox
in interface IMapLocation
public net.minecraft.util.EnumFacing getPointSide(@Nonnull net.minecraft.item.ItemStack item)
IMapLocation
getPointSide
in interface IMapLocation
public net.minecraft.util.math.BlockPos getPoint(@Nonnull net.minecraft.item.ItemStack item)
IMapLocation
getPoint
in interface IMapLocation
public IZone getZone(@Nonnull net.minecraft.item.ItemStack item)
IMapLocation
getZone
in interface IMapLocation
public java.util.List<net.minecraft.util.math.BlockPos> getPath(@Nonnull net.minecraft.item.ItemStack item)
IMapLocation
getPath
in interface IMapLocation
public static void setZone(@Nonnull net.minecraft.item.ItemStack item, ZonePlan plan)
public java.lang.String getName(@Nonnull net.minecraft.item.ItemStack item)
getName
in interface INamedItem
public boolean setName(@Nonnull net.minecraft.item.ItemStack item, java.lang.String name)
setName
in interface INamedItem