Class UniversalBucketItem

java.lang.Object
net.minecraft.world.item.Item
de.cech12.bucketlib.api.item.UniversalBucketItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IItemExtension

public class UniversalBucketItem extends net.minecraft.world.item.Item
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    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, CODEC, DEFAULT_MAX_STACK_SIZE, descriptionId, MAX_BAR_WIDTH

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    UniversalBucketItem(net.minecraft.resources.ResourceKey<net.minecraft.world.item.Item> id, UniversalBucketItem.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHoldBlock(net.minecraft.world.level.block.Block block)
     
    boolean
    canHoldEntity(net.minecraft.world.entity.EntityType<?> entityType)
     
    boolean
    canHoldFluid(net.minecraft.world.level.material.Fluid fluid)
     
    boolean
     
    net.minecraft.world.item.ItemStack
    finishUsingItem(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity player)
     
    int
    getBucketBurnTime(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.crafting.RecipeType<?> recipeType)
     
     
    net.minecraft.world.item.ItemStack
    getCraftingRemainder(net.minecraft.world.item.ItemStack itemStack)
     
    net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>
     
    int
     
    int
     
     
     
    int
    getMaxStackSize(net.minecraft.world.item.ItemStack stack)
     
     
     
    net.minecraft.network.chat.Component
    getName(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.item.ItemStack
    getRecipeRemainder(net.minecraft.world.item.ItemStack itemStack)
     
     
    net.minecraft.world.item.ItemUseAnimation
    getUseAnimation(net.minecraft.world.item.ItemStack itemStack)
     
    int
    getUseDuration(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.LivingEntity livingEntity)
     
    boolean
    hasCraftingRemainder(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.InteractionResult
    interactLivingEntity(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.InteractionHand interactionHand)
     
    void
    inventoryTick(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity entity, int position, boolean selected)
     
    boolean
    isBurningBlock(net.minecraft.world.level.block.Block block)
     
    boolean
    isBurningFluid(net.minecraft.world.level.material.Fluid fluid)
     
    boolean
    isCracked(net.minecraft.world.item.ItemStack stack)
     
    boolean
     
    boolean
    isFreezingBlock(net.minecraft.world.level.block.Block block)
     
    boolean
    isFreezingFluid(net.minecraft.world.level.material.Fluid fluid)
     
    void
    onUseTick(net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity livingEntity, net.minecraft.world.item.ItemStack itemStack, int useRemainingTicks)
     
    net.minecraft.world.item.ItemStack
    spawnEntityFromBucket(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack itemStack, net.minecraft.core.BlockPos pos, boolean damage)
     
    net.minecraft.world.InteractionResult
    use(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand interactionHand)
     

    Methods inherited from class net.minecraft.world.item.Item

    appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainder, getDamageSource, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getName, getPlayerPOVHitResult, getTooltipImage, hurtEnemy, isBarVisible, isCorrectToolForDrops, isFoil, isRepairable, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, useOn, useOnRelease, verifyComponentsAfterLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtension

    applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, getAllEnchantments, getArmorTexture, getBurnTime, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEntityLifespan, getEquipmentSlot, getHighlightTip, getMaxDamage, getSweepHitBox, getXpRepairRatio, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isGazeDisguise, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, supportsEnchantment
  • Constructor Details

    • UniversalBucketItem

      public UniversalBucketItem(net.minecraft.resources.ResourceKey<net.minecraft.world.item.Item> id, UniversalBucketItem.Properties properties)
  • Method Details

    • getName

      @Nonnull public net.minecraft.network.chat.Component getName(@Nonnull net.minecraft.world.item.ItemStack stack)
      Overrides:
      getName in class net.minecraft.world.item.Item
    • isCracked

      public boolean isCracked(net.minecraft.world.item.ItemStack stack)
    • canHoldFluid

      public boolean canHoldFluid(net.minecraft.world.level.material.Fluid fluid)
    • canHoldEntity

      public boolean canHoldEntity(net.minecraft.world.entity.EntityType<?> entityType)
    • canHoldBlock

      public boolean canHoldBlock(net.minecraft.world.level.block.Block block)
    • getMaxStackSize

      public int getMaxStackSize(net.minecraft.world.item.ItemStack stack)
    • getBucketBurnTime

      public int getBucketBurnTime(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.crafting.RecipeType<?> recipeType)
    • inventoryTick

      public void inventoryTick(@Nonnull net.minecraft.world.item.ItemStack itemStack, @Nonnull net.minecraft.world.level.Level level, @Nonnull net.minecraft.world.entity.Entity entity, int position, boolean selected)
      Overrides:
      inventoryTick in class net.minecraft.world.item.Item
    • use

      @Nonnull public net.minecraft.world.InteractionResult use(@Nonnull net.minecraft.world.level.Level level, @Nonnull net.minecraft.world.entity.player.Player player, @Nonnull net.minecraft.world.InteractionHand interactionHand)
      Overrides:
      use in class net.minecraft.world.item.Item
    • spawnEntityFromBucket

      public net.minecraft.world.item.ItemStack spawnEntityFromBucket(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack itemStack, net.minecraft.core.BlockPos pos, boolean damage)
    • interactLivingEntity

      @Nonnull public net.minecraft.world.InteractionResult interactLivingEntity(@Nonnull net.minecraft.world.item.ItemStack itemStack, @Nonnull net.minecraft.world.entity.player.Player player, @Nonnull net.minecraft.world.entity.LivingEntity entity, @Nonnull net.minecraft.world.InteractionHand interactionHand)
      Overrides:
      interactLivingEntity in class net.minecraft.world.item.Item
    • finishUsingItem

      @Nonnull public net.minecraft.world.item.ItemStack finishUsingItem(@Nonnull net.minecraft.world.item.ItemStack itemStack, @Nonnull net.minecraft.world.level.Level level, @Nonnull net.minecraft.world.entity.LivingEntity player)
      Overrides:
      finishUsingItem in class net.minecraft.world.item.Item
    • getUseDuration

      public int getUseDuration(@Nonnull net.minecraft.world.item.ItemStack itemStack, @Nonnull net.minecraft.world.entity.LivingEntity livingEntity)
      Overrides:
      getUseDuration in class net.minecraft.world.item.Item
    • getUseAnimation

      @Nonnull public net.minecraft.world.item.ItemUseAnimation getUseAnimation(@Nonnull net.minecraft.world.item.ItemStack itemStack)
      Overrides:
      getUseAnimation in class net.minecraft.world.item.Item
    • onUseTick

      public void onUseTick(@Nonnull net.minecraft.world.level.Level level, @Nonnull net.minecraft.world.entity.LivingEntity livingEntity, @Nonnull net.minecraft.world.item.ItemStack itemStack, int useRemainingTicks)
      Overrides:
      onUseTick in class net.minecraft.world.item.Item
    • hasCraftingRemainder

      public boolean hasCraftingRemainder(net.minecraft.world.item.ItemStack stack)
    • getCraftingRemainder

      public net.minecraft.world.item.ItemStack getCraftingRemainder(net.minecraft.world.item.ItemStack itemStack)
    • getRecipeRemainder

      public net.minecraft.world.item.ItemStack getRecipeRemainder(net.minecraft.world.item.ItemStack itemStack)
    • getCreativeTab

      public net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab> getCreativeTab()
    • getDurability

      public int getDurability()
    • isDyeable

      public boolean isDyeable()
    • getDefaultColor

      public int getDefaultColor()
    • getMaxTemperature

      public Integer getMaxTemperature()
    • getUpperBreakTemperature

      public Integer getUpperBreakTemperature()
    • getLowerBreakTemperature

      public Integer getLowerBreakTemperature()
    • getMinTemperature

      public Integer getMinTemperature()
    • getBurningTemperature

      public Integer getBurningTemperature()
    • isBurningFluid

      public boolean isBurningFluid(net.minecraft.world.level.material.Fluid fluid)
    • isBurningBlock

      public boolean isBurningBlock(net.minecraft.world.level.block.Block block)
    • getFreezingTemperature

      public Integer getFreezingTemperature()
    • isFreezingFluid

      public boolean isFreezingFluid(net.minecraft.world.level.material.Fluid fluid)
    • isFreezingBlock

      public boolean isFreezingBlock(net.minecraft.world.level.block.Block block)
    • canMilkEntities

      public boolean canMilkEntities()