Package vazkii.botania.common.item
Class ManaBlasterItem
java.lang.Object
net.minecraft.world.item.Item
vazkii.botania.common.item.ManaBlasterItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike
public class ManaBlasterItem
extends net.minecraft.world.item.Item
-
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 TypeMethodDescriptionvoidappendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flags) static List<net.minecraft.world.item.ItemStack> getAllLens(net.minecraft.world.item.ItemStack stack) intgetBarColor(net.minecraft.world.item.ItemStack stack) intgetBarWidth(net.minecraft.world.item.ItemStack stack) getBurstProps(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, boolean request, net.minecraft.world.InteractionHand hand) static intgetClipPos(net.minecraft.world.item.ItemStack stack) static net.minecraft.world.item.ItemStackgetLens(net.minecraft.world.item.ItemStack stack) static net.minecraft.world.item.ItemStackgetLensAtPos(net.minecraft.world.item.ItemStack stack, int pos) net.minecraft.network.chat.ComponentgetName(net.minecraft.world.item.ItemStack stack) static booleanhasClip(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) booleanisBarVisible(net.minecraft.world.item.ItemStack stack) static booleanisValidLens(net.minecraft.world.item.ItemStack lens) static voidrotatePos(net.minecraft.world.item.ItemStack stack) static voidsetClip(net.minecraft.world.item.ItemStack stack, boolean clip) static voidsetClipPos(net.minecraft.world.item.ItemStack stack, int pos) static voidsetLens(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack lens) static voidsetLensAtPos(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack lens, int pos) net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) Methods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, 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
isEnabled
-
Field Details
-
CLIP_SLOTS
public static final int CLIP_SLOTS- See Also:
-
-
Constructor Details
-
ManaBlasterItem
public ManaBlasterItem(net.minecraft.world.item.Item.Properties props)
-
-
Method Details
-
use
public net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) - Overrides:
usein classnet.minecraft.world.item.Item
-
getBurstProps
public BurstProperties getBurstProps(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, boolean request, net.minecraft.world.InteractionHand hand) -
appendHoverText
public void appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flags) - Overrides:
appendHoverTextin classnet.minecraft.world.item.Item
-
getName
public net.minecraft.network.chat.Component getName(net.minecraft.world.item.ItemStack stack) - Overrides:
getNamein classnet.minecraft.world.item.Item
-
hasClip
public static boolean hasClip(net.minecraft.world.item.ItemStack stack) -
setClip
public static void setClip(net.minecraft.world.item.ItemStack stack, boolean clip) -
getClipPos
public static int getClipPos(net.minecraft.world.item.ItemStack stack) -
setClipPos
public static void setClipPos(net.minecraft.world.item.ItemStack stack, int pos) -
rotatePos
public static void rotatePos(net.minecraft.world.item.ItemStack stack) -
getLensAtPos
public static net.minecraft.world.item.ItemStack getLensAtPos(net.minecraft.world.item.ItemStack stack, int pos) -
setLensAtPos
public static void setLensAtPos(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack lens, int pos) -
setLens
public static void setLens(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack lens) -
getLens
public static net.minecraft.world.item.ItemStack getLens(net.minecraft.world.item.ItemStack stack) -
isValidLens
public static boolean isValidLens(net.minecraft.world.item.ItemStack lens) -
getAllLens
public static List<net.minecraft.world.item.ItemStack> getAllLens(net.minecraft.world.item.ItemStack stack) -
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 classnet.minecraft.world.item.Item
-
isBarVisible
public boolean isBarVisible(net.minecraft.world.item.ItemStack stack) - Overrides:
isBarVisiblein classnet.minecraft.world.item.Item
-
getBarWidth
public int getBarWidth(net.minecraft.world.item.ItemStack stack) - Overrides:
getBarWidthin classnet.minecraft.world.item.Item
-
getBarColor
public int getBarColor(net.minecraft.world.item.ItemStack stack) - Overrides:
getBarColorin classnet.minecraft.world.item.Item
-