Class ItemHorizonWand

java.lang.Object
net.minecraft.item.Item
com.gtnewhorizons.horizonqa.item.ItemHorizonWand

public class ItemHorizonWand extends net.minecraft.item.Item
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     

    Nested classes/interfaces inherited from class net.minecraft.item.Item

    net.minecraft.item.Item.ToolMaterial
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class net.minecraft.item.Item

    bFull3D, canRepair, delegate, field_111210_e, hasSubtypes, iconString, itemIcon, itemRand, itemRegistry, maxStackSize
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addInformation(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, List list, boolean advanced)
     
    static int
    clearLabels(net.minecraft.item.ItemStack stack)
     
    static String
    getLabelAt(net.minecraft.item.ItemStack stack, int x, int y, int z)
     
    static Map<String,int[]>
    getLabels(net.minecraft.item.ItemStack stack)
     
    static net.minecraft.nbt.NBTTagCompound
    getOrCreateNBT(net.minecraft.item.ItemStack stack)
     
    static int[]
    getTargetedPosition(net.minecraft.entity.player.EntityPlayer player)
     
    static int[]
    getTargetedPositionFromHit(int x, int y, int z, int side, boolean sneaking)
     
    static boolean
    hasCompleteSelection(net.minecraft.item.ItemStack stack)
     
    static boolean
    isInsideSelection(net.minecraft.item.ItemStack stack, int x, int y, int z)
     
    static boolean
     
    static int
    labelCount(net.minecraft.item.ItemStack stack)
     
    static boolean
    moveLabel(net.minecraft.item.ItemStack stack, String name, int dx, int dy, int dz)
    Moves one named label by one block along a single axis without changing the selection.
    static boolean
    moveSelection(net.minecraft.item.ItemStack stack, int dx, int dy, int dz)
    Moves a complete wand selection and all of its labels by one block along a single axis.
    net.minecraft.item.ItemStack
    onItemRightClick(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.player.EntityPlayer player)
     
    boolean
    onItemUse(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, net.minecraft.world.World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
     
    static int
    outsideSelectionLabelCount(net.minecraft.item.ItemStack stack)
     
    static boolean
    removeLabel(net.minecraft.item.ItemStack stack, String name)
     
    static boolean
    resizeSelection(net.minecraft.item.ItemStack stack, int sideX, int sideY, int sideZ, int amount)
    Resizes one side of a complete wand selection by one block.
    setLabel(net.minecraft.item.ItemStack stack, String name, int x, int y, int z)
     
    static void
    setPos1(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, int x, int y, int z)
     
    static void
    setPos2(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, int x, int y, int z)
     

    Methods inherited from class net.minecraft.item.Item

    canHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, doesSneakBypassUse, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getAttributeModifiers, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamage, getIconFromDamageForRenderPass, getIconIndex, getIconString, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getRenderPasses, getShareTag, getSmeltingExperience, getSpriteNumber, getSubItems, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEaten, onEntityItemUpdate, onEntitySwing, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerIcons, registerItems, renderHelmetOverlay, requiresMultipleRenderPasses, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, setUnlocalizedName, shouldRotateAroundWhenRendering, showDurabilityBar

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ItemHorizonWand

      public ItemHorizonWand()
  • Method Details

    • onItemUse

      public boolean onItemUse(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, net.minecraft.world.World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
      Overrides:
      onItemUse in class net.minecraft.item.Item
    • onItemRightClick

      public net.minecraft.item.ItemStack onItemRightClick(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.player.EntityPlayer player)
      Overrides:
      onItemRightClick in class net.minecraft.item.Item
    • getTargetedPosition

      public static int[] getTargetedPosition(net.minecraft.entity.player.EntityPlayer player)
    • getTargetedPositionFromHit

      public static int[] getTargetedPositionFromHit(int x, int y, int z, int side, boolean sneaking)
    • setPos1

      public static void setPos1(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, int x, int y, int z)
    • setPos2

      public static void setPos2(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, int x, int y, int z)
    • addInformation

      public void addInformation(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, List list, boolean advanced)
      Overrides:
      addInformation in class net.minecraft.item.Item
    • getOrCreateNBT

      public static net.minecraft.nbt.NBTTagCompound getOrCreateNBT(net.minecraft.item.ItemStack stack)
    • isValidLabelName

      public static boolean isValidLabelName(String name)
    • labelCount

      public static int labelCount(net.minecraft.item.ItemStack stack)
    • getLabels

      public static Map<String,int[]> getLabels(net.minecraft.item.ItemStack stack)
    • getLabelAt

      public static String getLabelAt(net.minecraft.item.ItemStack stack, int x, int y, int z)
    • setLabel

      public static ItemHorizonWand.LabelMutationResult setLabel(net.minecraft.item.ItemStack stack, String name, int x, int y, int z)
    • removeLabel

      public static boolean removeLabel(net.minecraft.item.ItemStack stack, String name)
    • moveLabel

      public static boolean moveLabel(net.minecraft.item.ItemStack stack, String name, int dx, int dy, int dz)
      Moves one named label by one block along a single axis without changing the selection.
    • clearLabels

      public static int clearLabels(net.minecraft.item.ItemStack stack)
    • hasCompleteSelection

      public static boolean hasCompleteSelection(net.minecraft.item.ItemStack stack)
    • moveSelection

      public static boolean moveSelection(net.minecraft.item.ItemStack stack, int dx, int dy, int dz)
      Moves a complete wand selection and all of its labels by one block along a single axis.
      Returns:
      true when the selection was moved, or false for an incomplete selection, an invalid offset, or a move outside Minecraft's coordinate limits
    • resizeSelection

      public static boolean resizeSelection(net.minecraft.item.ItemStack stack, int sideX, int sideY, int sideZ, int amount)
      Resizes one side of a complete wand selection by one block. A positive amount moves the requested side outward and a negative amount moves it inward. Labels remain at their world coordinates.
      Returns:
      true when the side was resized, or false for invalid input, an incomplete selection, a side outside Minecraft's coordinate limits, or an attempt to shrink below one block
    • isInsideSelection

      public static boolean isInsideSelection(net.minecraft.item.ItemStack stack, int x, int y, int z)
    • outsideSelectionLabelCount

      public static int outsideSelectionLabelCount(net.minecraft.item.ItemStack stack)