Package btw.item.blockitems
Class InfinteUnlitTorchBlockItem
java.lang.Object
net.minecraft.src.Item
api.item.items.PlaceAsBlockItem
net.minecraft.src.ItemBlock
btw.item.blockitems.InfinteUnlitTorchBlockItem
- Direct Known Subclasses:
FiniteUnlitTorchBlockItem
-
Field Summary
Fields inherited from class api.item.items.PlaceAsBlockItem
blockID, blockMetadata, requireNoEntitiesInTargetBlockFields inherited from class net.minecraft.src.Item
appleGold, appleRed, arrow, axeDiamond, axeGold, axeIron, axeStone, axeWood, bakedPotato, BASE_CHICKEN_ITEM_FOOD_VALUE, BASE_HERBIVORE_ITEM_FOOD_VALUE, BASE_PIG_ITEM_FOOD_VALUE, bed, beefCooked, beefRaw, bFull3D, blazePowder, blazeRod, boat, bone, book, bootsChain, bootsDiamond, bootsGold, bootsIron, bootsLeather, bow, bowlEmpty, bowlSoup, bread, brewingStand, brick, bucketEmpty, bucketLava, bucketMilk, bucketWater, cake, carrot, carrotOnAStick, cauldron, chickenCooked, chickenRaw, clay, coal, comparator, compass, cookie, defaultFurnaceBurnTime, diamond, doorIron, doorWood, dyePowder, egg, emerald, emptyMap, enchantedBook, enderPearl, expBottle, eyeOfEnder, feather, fermentedSpiderEye, field_111210_e, FILTERABLE_FINE, FILTERABLE_NARROW, FILTERABLE_NO_PROPERTIES, FILTERABLE_SMALL, FILTERABLE_SOLID_BLOCK, FILTERABLE_THIN, fireballCharge, firework, fireworkCharge, fishCooked, fishingRod, fishRaw, flint, flintAndSteel, flowerPot, ghastTear, glassBottle, glowstone, goldenCarrot, goldNugget, gunpowder, hasSubtypes, helmetChain, helmetDiamond, helmetGold, helmetIron, helmetLeather, hoeDiamond, hoeGold, hoeIron, hoeStone, hoeWood, horseArmorDiamond, horseArmorGold, horseArmorIron, iconString, ingotGold, ingotIron, isInceratedInCrucible, itemFrame, itemIcon, itemID, itemRand, itemsList, leash, leather, legsChain, legsDiamond, legsGold, legsIron, legsLeather, magmaCream, map, maxStackSize, melon, melonSeeds, minecartCrate, minecartEmpty, minecartHopper, minecartPowered, minecartTnt, modID, modIDSetter, monsterPlacer, nameTag, netherQuartz, netherrackBrick, netherStalkSeeds, netherStar, painting, paper, pickaxeDiamond, pickaxeGold, pickaxeIron, pickaxeStone, pickaxeWood, plateChain, plateDiamond, plateGold, plateIron, plateLeather, pocketSundial, poisonousPotato, porkCooked, porkRaw, potato, potion, pumpkinPie, pumpkinSeeds, record11, record13, recordBlocks, recordCat, recordChirp, recordFar, recordMall, recordMellohi, recordStal, recordStrad, recordWait, recordWard, redstone, redstoneRepeater, reed, rottenFlesh, saddle, seeds, shears, shovelDiamond, shovelGold, shovelIron, shovelStone, shovelWood, sign, silk, skull, slimeBall, snowball, speckledMelon, spiderEye, stick, sugar, suppressConflictWarnings, swordDiamond, swordGold, swordIron, swordStone, swordWood, wheat, writableBook, writtenBook -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceItemBlockOnSide(World world, int i, int j, int k, int iFacing, EntityPlayer player, ItemStack stack) booleangetCanItemBeSetOnFireOnUse(int iItemDamage) Used to override default activation behavior on certain blocks like accessing inventory on furnace and campfiresprotected booleanisPlayerClickingOnIgniter(ItemStack stack, World world, EntityPlayer player) onItemRightClick(ItemStack stack, World world, EntityPlayer player) // +++START EDIT+++ // ---END EDIT--- Called whenever this item is equipped and the right mouse button is pressed.booleanonItemUse(ItemStack stack, EntityPlayer player, World world, int i, int j, int k, int iFacing, float fClickX, float fClickY, float fClickZ) Callback for item usage.protected ItemStackonRightClickOnIgniter(ItemStack stack, World world, EntityPlayer player) Methods inherited from class net.minecraft.src.ItemBlock
getBlockID, getBuoyancy, getChickenFoodValue, getColorFromItemStack, getCreativeTab, getFurnaceBurnTime, getHerbivoreFoodValue, getHopperFilterIcon, getIconFromDamage, getPigFoodValue, getSpriteNumber, getSubItems, getUnlocalizedName, getUnlocalizedName, isIncineratedInCrucible, registerIcons, setAssociatedBlockID, setBuoyancy, setChickenFoodValue, setfurnaceburntime, setHerbivoreFoodValue, setPigFoodValueMethods inherited from class api.item.items.PlaceAsBlockItem
canItemBeUsedByPlayer, getBlockIDToPlace, getBlockIDToPlace, getMetadata, getTargetFacingPlacedByBlockDispenser, isTargetFreeOfObstructingEntities, onItemUsedByBlockDispenser, playPlaceSoundMethods inherited from class net.minecraft.src.Item
addInformation, canHarvestBlock, canItemEditBlocks, createItemAsEntityInWorld, doesConsumeContainerItemWhenCrafted, doesContainerItemLeaveCraftingGrid, doZombiesConsume, getAnimationIcon, getCampfireBurnTime, getCanBeFedDirectlyIntoBrickOven, getCanBeFedDirectlyIntoCampfire, getCanItemStartFireOnUse, getContainerItem, getCustomItemEntity, getExhaustionOnUsedToHarvestBlock, getHasSubtypes, getIconFromDamageForRenderPass, getIconIndex, getIconString, getInfernalMaxEnchantmentCost, getInfernalMaxNumEnchants, getIsRepairable, getItemAttributeModifiers, getItemDisplayName, getItemEnchantability, getItemRightClickCooldown, getItemStackDisplayName, getItemStackLimit, getItemUseAction, getItemUseWarmupDuration, getMaxDamage, getMaxItemUseDuration, getModId, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getShareTag, getStatName, getStrVsBlock, getUnlocalizedNameInefficiently, getWolfHealAmount, hasContainerItem, hasCustomItemEntity, hasEffect, hideFromEMI, hitEntity, ignoreDamageWhenComparingDuringUse, initializeStackOnGiveCommand, isConsumedInCrafting, isDamageable, isDamagedInCrafting, isEfficientVsBlock, isEnchantmentApplicable, isFull3D, isItemTool, isMap, isMultiUsePerClick, isPotionIngredient, isWolfFood, itemInteractionForEntity, onBlockDestroyed, onBrokenInCrafting, onCreated, onDamagedInCrafting, onEaten, onPlayerStoppedUsing, onUpdate, onUsedInCrafting, onUsedInCrafting, requiresMultipleRenderPasses, setAllAxesToBeEffectiveVsBlock, setAllPicksToBeEffectiveVsBlock, setAllShovelsToBeEffectiveVsBlock, setAsBasicChickenFood, setAsBasicHerbivoreFood, setAsBasicPigFood, setBuoyant, setContainerItem, setCreativeTab, setCustomItemEntity, setFull3D, setfurnaceburntime, setHasSubtypes, setIncineratedInCrucible, setInfernalMaxEnchantmentCost, setInfernalMaxNumEnchants, setItemRightClickCooldown, setMaxDamage, setMaxStackSize, setModID, setNeutralBuoyant, setNonBuoyant, setNotIncineratedInCrucible, setPotionEffect, setTextureName, setUnlocalizedName, shouldApplyAttributesWhenHeld, shouldApplyAttributesWhenWorn, shouldRotateAroundWhenRendering, updateUsingItem
-
Constructor Details
-
InfinteUnlitTorchBlockItem
public InfinteUnlitTorchBlockItem(int iItemID)
-
-
Method Details
-
onItemUse
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int i, int j, int k, int iFacing, float fClickX, float fClickY, float fClickZ) Description copied from class:ItemCallback for item usage. If the item does something special on right clicking, he will have one of those. Return True if something happen and false if it don't. This is for ITEMS, not BLOCKS- Overrides:
onItemUsein classPlaceAsBlockItem
-
getCanItemBeSetOnFireOnUse
public boolean getCanItemBeSetOnFireOnUse(int iItemDamage) Description copied from class:ItemUsed to override default activation behavior on certain blocks like accessing inventory on furnace and campfires- Overrides:
getCanItemBeSetOnFireOnUsein classItem
-
onItemRightClick
Description copied from class:Item// +++START EDIT+++ // ---END EDIT--- Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer- Overrides:
onItemRightClickin classItem
-
onRightClickOnIgniter
-
isPlayerClickingOnIgniter
-
canPlaceItemBlockOnSide
@Environment(CLIENT) public boolean canPlaceItemBlockOnSide(World world, int i, int j, int k, int iFacing, EntityPlayer player, ItemStack stack) - Overrides:
canPlaceItemBlockOnSidein classPlaceAsBlockItem
-