Package com.gtnewhorizons.horizonqa.item
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 ClassesNested classes/interfaces inherited from class net.minecraft.item.Item
net.minecraft.item.Item.ToolMaterial -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ItemHorizonWandstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class net.minecraft.item.Item
bFull3D, canRepair, delegate, field_111210_e, hasSubtypes, iconString, itemIcon, itemRand, itemRegistry, maxStackSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInformation(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, List list, boolean advanced) static intclearLabels(net.minecraft.item.ItemStack stack) static StringgetLabelAt(net.minecraft.item.ItemStack stack, int x, int y, int z) getLabels(net.minecraft.item.ItemStack stack) static net.minecraft.nbt.NBTTagCompoundgetOrCreateNBT(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 booleanhasCompleteSelection(net.minecraft.item.ItemStack stack) static booleanisInsideSelection(net.minecraft.item.ItemStack stack, int x, int y, int z) static booleanisValidLabelName(String name) static intlabelCount(net.minecraft.item.ItemStack stack) static booleanMoves one named label by one block along a single axis without changing the selection.static booleanmoveSelection(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.ItemStackonItemRightClick(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.player.EntityPlayer player) booleanonItemUse(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 intoutsideSelectionLabelCount(net.minecraft.item.ItemStack stack) static booleanremoveLabel(net.minecraft.item.ItemStack stack, String name) static booleanresizeSelection(net.minecraft.item.ItemStack stack, int sideX, int sideY, int sideZ, int amount) Resizes one side of a complete wand selection by one block.static voidsetPos1(net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, int x, int y, int z) static voidsetPos2(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
-
Field Details
-
INSTANCE
-
TAG_POS1_X
- See Also:
-
TAG_POS1_Y
- See Also:
-
TAG_POS1_Z
- See Also:
-
TAG_POS1_SET
- See Also:
-
TAG_POS2_X
- See Also:
-
TAG_POS2_Y
- See Also:
-
TAG_POS2_Z
- See Also:
-
TAG_POS2_SET
- See Also:
-
TAG_PENDING
- See Also:
-
TAG_LABELS
- See Also:
-
TAG_EXPORT_NAME
- See Also:
-
-
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:
onItemUsein classnet.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:
onItemRightClickin classnet.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:
addInformationin classnet.minecraft.item.Item
-
getOrCreateNBT
public static net.minecraft.nbt.NBTTagCompound getOrCreateNBT(net.minecraft.item.ItemStack stack) -
isValidLabelName
-
labelCount
public static int labelCount(net.minecraft.item.ItemStack stack) -
getLabels
-
getLabelAt
-
setLabel
public static ItemHorizonWand.LabelMutationResult setLabel(net.minecraft.item.ItemStack stack, String name, int x, int y, int z) -
removeLabel
-
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:
truewhen the selection was moved, orfalsefor 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 positiveamountmoves the requested side outward and a negative amount moves it inward. Labels remain at their world coordinates.- Returns:
truewhen the side was resized, orfalsefor 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)
-