net.minecraft.item

public class BucketItem

extends Item implements FluidModificationItem

All mapped superinterfaces:

ItemConvertible, ToggleableFeature, FluidModificationItem

net.minecraft.world.item.BucketItem
net.minecraft.class_1755
net.minecraft.item.BucketItem

Field summary

Modifier and TypeField
protected final Fluid
content
field_7905
fluid

Constructor summary

ModifierConstructor
public (Fluid fluid, Item$Settings settings)

Method summary

Modifier and TypeMethod
public ActionResult
use(Level level, Player player, InteractionHand hand)
method_7836(class_1937 arg0, class_1657 arg1, class_1268 arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
public RaycastContext$FluidHandling
getFluidContext()
method_1_4753()
getFluidHandling()
public static ItemStack
getEmptySuccessItem(ItemStack itemStack, Player player)
method_7732(class_1799 arg0, class_1657 arg1)
getEmptiedStack(ItemStack stack, PlayerEntity player)
public void
checkExtraContent(LivingEntity user, Level level, ItemStack itemStack, BlockPos pos)
method_7728(class_1309 arg0, class_1937 arg1, class_1799 arg2, class_2338 arg3)
onEmptied(LivingEntity arg0, World arg1, ItemStack arg2, BlockPos arg3)
public boolean
emptyContents(LivingEntity user, Level level, BlockPos pos, BlockHitResult hitResult)
method_7731(class_1309 arg0, class_1937 arg1, class_2338 arg2, class_3965 arg3)
placeFluid(LivingEntity arg0, World arg1, BlockPos arg2, BlockHitResult arg3)
protected void
playEmptySound(LivingEntity user, LevelAccessor level, BlockPos pos)
method_7727(class_1309 arg0, class_1936 arg1, class_2338 arg2)
playEmptyingSound(LivingEntity user, WorldAccess world, BlockPos pos)
public Fluid
getContent()
method_74140()
getFluid()
private static void
lambda$use$0(Player arg0, SoundEvent arg1)
method_32342(class_1657 arg0, class_3414 arg1)
method_32342(PlayerEntity arg0, SoundEvent sound)