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.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 ClassesNested 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_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionUniversalBucketItem(net.minecraft.resources.ResourceKey<net.minecraft.world.item.Item> id, UniversalBucketItem.Properties properties) -
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.ItemStackgetCraftingRemainder(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.ItemUseAnimationgetUseAnimation(net.minecraft.world.item.ItemStack itemStack) intgetUseDuration(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.LivingEntity livingEntity) booleanhasCraftingRemainder(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) voidonUseTick(net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity livingEntity, net.minecraft.world.item.ItemStack itemStack, int useRemainingTicks) 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.InteractionResultuse(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, 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
isEnabledMethods 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:
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.InteractionResult 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.ItemUseAnimation getUseAnimation(@Nonnull net.minecraft.world.item.ItemStack itemStack) - Overrides:
getUseAnimationin classnet.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:
onUseTickin classnet.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
-
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()
-