net.minecraft.item

public class EntityBucketItem

extends BucketItem

All mapped superinterfaces:

ItemConvertible, ToggleableFeature, FluidModificationItem

net.minecraft.world.item.MobBucketItem
net.minecraft.class_1785
net.minecraft.item.EntityBucketItem

Field summary

Modifier and TypeField
private final EntityType<? extends MobEntity>
type
field_7991
entityType
private final SoundEvent
emptySound
field_28356
emptyingSound

Constructor summary

ModifierConstructor
public (EntityType<? extends MobEntity> type, Fluid fluid, SoundEvent emptyingSound, Item$Settings settings)

Method summary

Modifier and TypeMethod
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)
protected void
playEmptySound(LivingEntity user, LevelAccessor level, BlockPos pos)
method_7727(class_1309 arg0, class_1936 arg1, class_2338 arg2)
playEmptyingSound(LivingEntity arg0, WorldAccess arg1, BlockPos arg2)
private void
spawn(ServerLevel level, ItemStack itemStack, BlockPos spawnPos)
method_7824(class_3218 arg0, class_1799 arg1, class_2338 arg2)
spawnEntity(ServerWorld world, ItemStack stack, BlockPos pos)