Class UniversalBucketItem

java.lang.Object
net.minecraft.world.item.Item
de.cech12.bucketlib.api.item.UniversalBucketItem
All Implemented Interfaces:
net.fabricmc.fabric.api.item.v1.FabricItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike

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

    Nested classes/interfaces inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem

    net.fabricmc.fabric.api.item.v1.FabricItem.Settings
  • 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_WIDTH

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

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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
    getCraftingRemainingItem(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.UseAnim
    getUseAnimation(net.minecraft.world.item.ItemStack itemStack)
     
    int
    getUseDuration(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.LivingEntity livingEntity)
     
    boolean
    hasCraftingRemainingItem(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)
     
    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.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    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, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, hasCraftingRemainingItem, hurtEnemy, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, 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.fabricmc.fabric.api.item.v1.FabricItem

    allowComponentsUpdateAnimation, allowContinuingBlockBreaking, canBeEnchantedWith

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

    isEnabled
  • Constructor Details

  • 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.InteractionResultHolder<net.minecraft.world.item.ItemStack> 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.UseAnim getUseAnimation(@Nonnull net.minecraft.world.item.ItemStack itemStack)
      Overrides:
      getUseAnimation in class net.minecraft.world.item.Item
    • hasCraftingRemainingItem

      public boolean hasCraftingRemainingItem(net.minecraft.world.item.ItemStack stack)
    • getCraftingRemainingItem

      public net.minecraft.world.item.ItemStack getCraftingRemainingItem(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()