Package net.minecraft.item
Class BucketItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BucketItem
- All Implemented Interfaces:
ItemConvertible
- Direct Known Subclasses:
FishBucketItem
public class BucketItem extends Item
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM -
Constructor Summary
Constructors Constructor Description BucketItem(Fluid fluid, Item.Settings settings) -
Method Summary
Modifier and Type Method Description protected ItemStackgetEmptiedStack(ItemStack stack, PlayerEntity player)voidonEmptied(World world, ItemStack stack, BlockPos pos)booleanplaceFluid(PlayerEntity player, World world, BlockPos pos, BlockHitResult blockHitResult)protected voidplayEmptyingSound(PlayerEntity player, WorldAccess world, BlockPos pos)TypedActionResult<ItemStack>use(World world, PlayerEntity user, Hand hand)Methods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntity
-
Field Details
-
Constructor Details
-
Method Details
-
use
-
getEmptiedStack
-
onEmptied
-
placeFluid
public boolean placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult blockHitResult) -
playEmptyingSound
-