Class TerraShattererItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.TieredItem
net.minecraft.world.item.DiggerItem
net.minecraft.world.item.PickaxeItem
vazkii.botania.common.item.equipment.tool.manasteel.ManasteelPickaxeItem
vazkii.botania.common.item.equipment.tool.terrasteel.TerraShattererItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,SequentialBreaker,SortableTool,CustomCreativeTabContents,CustomDamageItem
public class TerraShattererItem
extends ManasteelPickaxeItem
implements SequentialBreaker, CustomCreativeTabContents
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext -
Field Summary
FieldsFields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCreativeTab(net.minecraft.world.item.Item me, net.minecraft.world.item.CreativeModeTab.Output output) Add this item and any variants to the creative tabbooleanallowNbtUpdateAnimation(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack before, net.minecraft.world.item.ItemStack after) voidappendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> stacks, net.minecraft.world.item.TooltipFlag flags) voidbreakOtherBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos originPos, net.minecraft.core.Direction side) static intgetLevel(net.minecraft.world.item.ItemStack stack) static intgetMana_(net.minecraft.world.item.ItemStack stack) intOptional<net.minecraft.world.inventory.tooltip.TooltipComponent> getTooltipImage(net.minecraft.world.item.ItemStack stack) voidinventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean selected) static booleanisEnabled(net.minecraft.world.item.ItemStack stack) static booleanisTipped(net.minecraft.world.item.ItemStack stack) booleanonBlockStartBreak(net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) protected static voidsetMana(net.minecraft.world.item.ItemStack stack, int mana) static voidsetTipped(net.minecraft.world.item.ItemStack stack) booleanshouldCauseReequipAnimation(net.minecraft.world.item.ItemStack oldStack, net.minecraft.world.item.ItemStack newStack, boolean slotChanged) net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) Methods inherited from class vazkii.botania.common.item.equipment.tool.manasteel.ManasteelPickaxeItem
damageItem, getSortingPriority, useOnMethods inherited from class net.minecraft.world.item.DiggerItem
createAttributes, hurtEnemy, postHurtEnemyMethods inherited from class net.minecraft.world.item.TieredItem
getEnchantmentValue, getTier, isValidRepairItemMethods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getUseAnimation, getUseDuration, hasCraftingRemainingItem, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, toString, useOnRelease, verifyComponentsAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
-
Field Details
-
MAX_MANA
public static final int MAX_MANA- See Also:
-
LEVELS
public static final int[] LEVELS
-
-
Constructor Details
-
TerraShattererItem
public TerraShattererItem(net.minecraft.world.item.Item.Properties props)
-
-
Method Details
-
addToCreativeTab
public void addToCreativeTab(net.minecraft.world.item.Item me, net.minecraft.world.item.CreativeModeTab.Output output) Description copied from interface:CustomCreativeTabContentsAdd this item and any variants to the creative tab- Specified by:
addToCreativeTabin interfaceCustomCreativeTabContents- Parameters:
me- The item itself, for convenience when implementing this on a Block
-
appendHoverText
public void appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> stacks, net.minecraft.world.item.TooltipFlag flags) - Overrides:
appendHoverTextin classnet.minecraft.world.item.Item
-
use
public net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) - Overrides:
usein classnet.minecraft.world.item.Item
-
inventoryTick
public void inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean selected) - Overrides:
inventoryTickin classManasteelPickaxeItem
-
getTooltipImage
public Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> getTooltipImage(net.minecraft.world.item.ItemStack stack) - Overrides:
getTooltipImagein classnet.minecraft.world.item.Item
-
onBlockStartBreak
public boolean onBlockStartBreak(net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) -
getManaPerDamage
public int getManaPerDamage()- Overrides:
getManaPerDamagein classManasteelPickaxeItem
-
breakOtherBlock
public void breakOtherBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos originPos, net.minecraft.core.Direction side) - Specified by:
breakOtherBlockin interfaceSequentialBreaker
-
isTipped
public static boolean isTipped(net.minecraft.world.item.ItemStack stack) -
setTipped
public static void setTipped(net.minecraft.world.item.ItemStack stack) -
isEnabled
public static boolean isEnabled(net.minecraft.world.item.ItemStack stack) -
setMana
protected static void setMana(net.minecraft.world.item.ItemStack stack, int mana) -
getMana_
public static int getMana_(net.minecraft.world.item.ItemStack stack) -
getLevel
public static int getLevel(net.minecraft.world.item.ItemStack stack) -
shouldCauseReequipAnimation
public boolean shouldCauseReequipAnimation(net.minecraft.world.item.ItemStack oldStack, net.minecraft.world.item.ItemStack newStack, boolean slotChanged) -
allowNbtUpdateAnimation
public boolean allowNbtUpdateAnimation(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack before, net.minecraft.world.item.ItemStack after)
-