Package de.cech12.bucketlib.api.item
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 ClassesNested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.TooltipContextNested 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_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHoldBlock(net.minecraft.world.level.block.Block block) booleancanHoldEntity(net.minecraft.world.entity.EntityType<?> entityType) booleancanHoldFluid(net.minecraft.world.level.material.Fluid fluid) booleannet.minecraft.world.item.ItemStackfinishUsingItem(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity player) intgetBucketBurnTime(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.crafting.RecipeType<?> recipeType) net.minecraft.world.item.ItemStackgetCraftingRemainingItem(net.minecraft.world.item.ItemStack itemStack) net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab> intintintgetMaxStackSize(net.minecraft.world.item.ItemStack stack) net.minecraft.network.chat.ComponentgetName(net.minecraft.world.item.ItemStack stack) net.minecraft.world.item.ItemStackgetRecipeRemainder(net.minecraft.world.item.ItemStack itemStack) net.minecraft.world.item.UseAnimgetUseAnimation(net.minecraft.world.item.ItemStack itemStack) intgetUseDuration(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.LivingEntity livingEntity) booleanhasCraftingRemainingItem(net.minecraft.world.item.ItemStack stack) net.minecraft.world.InteractionResultinteractLivingEntity(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.InteractionHand interactionHand) voidinventoryTick(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity entity, int position, boolean selected) booleanisBurningBlock(net.minecraft.world.level.block.Block block) booleanisBurningFluid(net.minecraft.world.level.material.Fluid fluid) booleanisCracked(net.minecraft.world.item.ItemStack stack) booleanbooleanisFreezingBlock(net.minecraft.world.level.block.Block block) booleanisFreezingFluid(net.minecraft.world.level.material.Fluid fluid) net.minecraft.world.item.ItemStackspawnEntityFromBucket(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, verifyComponentsAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem
allowComponentsUpdateAnimation, allowContinuingBlockBreaking, canBeEnchantedWithMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
-
Constructor Details
-
UniversalBucketItem
-
-
Method Details
-
getName
@Nonnull public net.minecraft.network.chat.Component getName(@Nonnull net.minecraft.world.item.ItemStack stack) - Overrides:
getNamein classnet.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:
inventoryTickin classnet.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:
usein classnet.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:
interactLivingEntityin classnet.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:
finishUsingItemin classnet.minecraft.world.item.Item
-
getUseDuration
public int getUseDuration(@Nonnull net.minecraft.world.item.ItemStack itemStack, @Nonnull net.minecraft.world.entity.LivingEntity livingEntity) - Overrides:
getUseDurationin classnet.minecraft.world.item.Item
-
getUseAnimation
@Nonnull public net.minecraft.world.item.UseAnim getUseAnimation(@Nonnull net.minecraft.world.item.ItemStack itemStack) - Overrides:
getUseAnimationin classnet.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
-
getUpperBreakTemperature
-
getLowerBreakTemperature
-
getMinTemperature
-
getBurningTemperature
-
isBurningFluid
public boolean isBurningFluid(net.minecraft.world.level.material.Fluid fluid) -
isBurningBlock
public boolean isBurningBlock(net.minecraft.world.level.block.Block block) -
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()
-