Class TerraBladeItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.TieredItem
net.minecraft.world.item.SwordItem
vazkii.botania.common.item.equipment.tool.manasteel.ManasteelSwordItem
vazkii.botania.common.item.equipment.tool.terrasteel.TerraBladeItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,LensEffectItem,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
Fields 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 TypeMethodDescriptionvoidapply(net.minecraft.world.item.ItemStack stack, BurstProperties props, net.minecraft.world.level.Level level) Called when a mana spreader that has this focus shoots a burst.static net.minecraft.world.InteractionResultattackEntity(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, net.minecraft.world.InteractionHand hand, net.minecraft.world.entity.Entity target, @Nullable net.minecraft.world.phys.EntityHitResult hit) booleancollideBurst(ManaBurst burst, net.minecraft.world.phys.HitResult pos, boolean isManaBlock, boolean shouldKill, net.minecraft.world.item.ItemStack stack) Called when a mana burst fired from a mana spreader with this focus collides against any block or entity.booleandoParticles(ManaBurst burst, net.minecraft.world.item.ItemStack stack) Called when the mana burst should do it's particles.static ManaBurstEntitygetBurst(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) intstatic voidleftClick(net.minecraft.world.item.ItemStack stack) static voidtrySpawnBurst(net.minecraft.world.entity.player.Player player) static voidtrySpawnBurst(net.minecraft.world.entity.player.Player player, float attackStrength) voidupdateBurst(ManaBurst burst, net.minecraft.world.item.ItemStack stack) Called when a mana burst fired from a mana spreader with this focus is updated.Methods inherited from class vazkii.botania.common.item.equipment.tool.manasteel.ManasteelSwordItem
damageItem, inventoryTickMethods inherited from class net.minecraft.world.item.SwordItem
canAttackBlock, 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, 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, useOn, 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
isEnabledMethods inherited from interface vazkii.botania.api.mana.LensEffectItem
getManaToTransfer
-
Constructor Details
-
TerraBladeItem
public TerraBladeItem(net.minecraft.world.item.Item.Properties props)
-
-
Method Details
-
leftClick
public static void leftClick(net.minecraft.world.item.ItemStack stack) -
attackEntity
public static net.minecraft.world.InteractionResult attackEntity(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, net.minecraft.world.InteractionHand hand, net.minecraft.world.entity.Entity target, @Nullable @Nullable net.minecraft.world.phys.EntityHitResult hit) -
trySpawnBurst
public static void trySpawnBurst(net.minecraft.world.entity.player.Player player) -
trySpawnBurst
public static void trySpawnBurst(net.minecraft.world.entity.player.Player player, float attackStrength) -
getManaPerDamage
public int getManaPerDamage()- Overrides:
getManaPerDamagein classManasteelSwordItem
-
getBurst
public static ManaBurstEntity getBurst(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) -
apply
public void apply(net.minecraft.world.item.ItemStack stack, BurstProperties props, net.minecraft.world.level.Level level) Description copied from interface:LensEffectItemCalled when a mana spreader that has this focus shoots a burst. This is where you change the properties of the burst.- Specified by:
applyin interfaceLensEffectItem
-
collideBurst
public boolean collideBurst(ManaBurst burst, net.minecraft.world.phys.HitResult pos, boolean isManaBlock, boolean shouldKill, net.minecraft.world.item.ItemStack stack) Description copied from interface:LensEffectItemCalled when a mana burst fired from a mana spreader with this focus collides against any block or entity. This is called after the collision is handled.- Specified by:
collideBurstin interfaceLensEffectItem- Returns:
- True to kill the burst. False to keep it alive.
-
updateBurst
Description copied from interface:LensEffectItemCalled when a mana burst fired from a mana spreader with this focus is updated. This is called before the update is handled.- Specified by:
updateBurstin interfaceLensEffectItem
-
doParticles
Description copied from interface:LensEffectItemCalled when the mana burst should do it's particles. Return false to not do any particles.- Specified by:
doParticlesin interfaceLensEffectItem
-