Class TerraTruncatorItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.TieredItem
net.minecraft.world.item.DiggerItem
net.minecraft.world.item.AxeItem
vazkii.botania.common.item.equipment.tool.manasteel.ManasteelAxeItem
vazkii.botania.common.item.equipment.tool.terrasteel.TerraTruncatorItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,SequentialBreaker,SortableTool,CustomDamageItem
-
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
FieldsModifier and TypeFieldDescriptionstatic final intThe maximum radius (in blocks) which the Terra Truncator will go in order to try and murder/cut down the tree.Fields inherited from class net.minecraft.world.item.AxeItem
STRIPPABLESFields 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 TypeMethodDescriptionvoidbreakOtherBlock(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) intbooleanonBlockStartBreak(net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) static voidonTickEnd(net.minecraft.server.level.ServerLevel world) static booleanshouldBreak(net.minecraft.world.entity.player.Player player) Methods inherited from class vazkii.botania.common.item.equipment.tool.manasteel.ManasteelAxeItem
damageItem, getSortingPriority, inventoryTick, 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
appendHoverText, 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, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, toString, use, 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
-
BLOCK_RANGE
public static final int BLOCK_RANGEThe maximum radius (in blocks) which the Terra Truncator will go in order to try and murder/cut down the tree.- See Also:
-
-
Constructor Details
-
TerraTruncatorItem
public TerraTruncatorItem(net.minecraft.world.item.Item.Properties props)
-
-
Method Details
-
shouldBreak
public static boolean shouldBreak(net.minecraft.world.entity.player.Player player) -
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 classManasteelAxeItem
-
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
-
onTickEnd
public static void onTickEnd(net.minecraft.server.level.ServerLevel world)
-