net.minecraft.world.item

public class MobBucketItem

extends BucketItem

All mapped superinterfaces:

FeatureElement, ItemLike, DispensibleContainerItem

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

Field summary

Modifier and TypeField
private static final com.mojang.serialization.MapCodec<TropicalFish$Variant>
a
VARIANT_FIELD_CODEC
field_49272
TROPICAL_FISH_VARIANT_MAP_CODEC
private final EntityType<?>
b
type
field_7991
entityType
private final SoundEvent
c
emptySound
field_28356
emptyingSound

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(cpx arg0, dhi arg1, cxp arg2, jh arg3)
checkExtraContent(Player arg0, Level arg1, ItemStack arg2, BlockPos arg3)
method_7728(class_1657 arg0, class_1937 arg1, class_1799 arg2, class_2338 arg3)
onEmptied(PlayerEntity arg0, World arg1, ItemStack arg2, BlockPos arg3)
protected void
a(cpx arg0, dhj arg1, jh arg2)
playEmptySound(Player arg0, LevelAccessor arg1, BlockPos arg2)
method_7727(class_1657 arg0, class_1936 arg1, class_2338 arg2)
playEmptyingSound(PlayerEntity arg0, WorldAccess arg1, BlockPos arg2)
private void
a(ash arg0, cxp arg1, jh arg2)
spawn(ServerLevel arg0, ItemStack arg1, BlockPos arg2)
method_7824(class_3218 arg0, class_1799 arg1, class_2338 arg2)
spawnEntity(ServerWorld world, ItemStack stack, BlockPos pos)
public void
a(cxp arg0, cxl$b arg1, List<xv> arg2, czh arg3)
appendHoverText(ItemStack arg0, Item$TooltipContext arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1792$class_9635 arg1, List<class_2561> arg2, class_1836 arg3)
appendTooltip(ItemStack arg0, Item$TooltipContext arg1, List<Text> arg2, TooltipType arg3)