Package net.frozenblock.wilderwild.item
Class FireflyBottle
java.lang.Object
net.minecraft.world.item.Item
net.frozenblock.wilderwild.item.FireflyBottle
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike
public class FireflyBottle
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, CODEC, DEFAULT_MAX_STACK_SIZE, descriptionId, MAX_BAR_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionFireflyBottle(@NotNull FireflyColor color, @NotNull net.minecraft.world.item.Item.Properties settings) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.item.ItemUseAnimationgetUseAnimation(@NotNull net.minecraft.world.item.ItemStack stack) intgetUseDuration(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity livingEntity) static booleanisNectar(@NotNull net.minecraft.world.item.ItemStack stack) @NotNull net.minecraft.world.InteractionResultuse(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand usedHand) Methods inherited from class net.minecraft.world.item.Item
appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainder, getDamageSource, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getName, getName, getPlayerPOVHitResult, getTooltipImage, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isCorrectToolForDrops, isFoil, 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
-
color
-
-
Constructor Details
-
FireflyBottle
public FireflyBottle(@NotNull @NotNull FireflyColor color, @NotNull @NotNull net.minecraft.world.item.Item.Properties settings)
-
-
Method Details
-
isNectar
public static boolean isNectar(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) -
use
@NotNull public @NotNull net.minecraft.world.InteractionResult use(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand usedHand) - Overrides:
usein classnet.minecraft.world.item.Item
-
getUseAnimation
@NotNull public @NotNull net.minecraft.world.item.ItemUseAnimation getUseAnimation(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
getUseAnimationin classnet.minecraft.world.item.Item
-
getUseDuration
public int getUseDuration(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity livingEntity) - Overrides:
getUseDurationin classnet.minecraft.world.item.Item
-