Class EntityBucketItem

All Implemented Interfaces:
FluidModificationItem, ItemConvertible, ToggleableFeature

public class EntityBucketItem extends BucketItem
Mappings:
Namespace Name
named net/minecraft/item/EntityBucketItem
intermediary net/minecraft/class_1785
official daz
  • Field Details Link icon

    • entityType Link icon

      private final EntityType<? extends MobEntity> entityType
      Mappings:
      Namespace Name Mixin selector
      named entityType Lnet/minecraft/item/EntityBucketItem;entityType:Lnet/minecraft/entity/EntityType;
      intermediary field_7991 Lnet/minecraft/class_1785;field_7991:Lnet/minecraft/class_1299;
      official a Ldaz;a:Lbxn;
    • emptyingSound Link icon

      private final SoundEvent emptyingSound
      Mappings:
      Namespace Name Mixin selector
      named emptyingSound Lnet/minecraft/item/EntityBucketItem;emptyingSound:Lnet/minecraft/sound/SoundEvent;
      intermediary field_28356 Lnet/minecraft/class_1785;field_28356:Lnet/minecraft/class_3414;
      official b Ldaz;b:Lawx;
  • Constructor Details Link icon

    • EntityBucketItem Link icon

      public EntityBucketItem(EntityType<? extends MobEntity> type, Fluid fluid, SoundEvent emptyingSound, Item.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/EntityBucketItem;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/fluid/Fluid;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/item/Item$Settings;)V
      intermediary <init> Lnet/minecraft/class_1785;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_3611;Lnet/minecraft/class_3414;Lnet/minecraft/class_1792$class_1793;)V
      official <init> Ldaz;<init>(Lbxn;Lexz;Lawx;Ldag$a;)V
  • Method Details Link icon

    • onEmptied Link icon

      public void onEmptied(@Nullable @Nullable LivingEntity user, World world, ItemStack stack, BlockPos pos)
      Specified by:
      onEmptied in interface FluidModificationItem
      Overrides:
      onEmptied in class BucketItem
      Mappings:
      Namespace Name Mixin selector
      named onEmptied Lnet/minecraft/item/FluidModificationItem;onEmptied(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_7728 Lnet/minecraft/class_5633;method_7728(Lnet/minecraft/class_1309;Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)V
      official a Lczg;a(Lbyf;Ldkj;Ldak;Liw;)V
    • playEmptyingSound Link icon

      protected void playEmptyingSound(@Nullable @Nullable LivingEntity user, WorldAccess world, BlockPos pos)
      Overrides:
      playEmptyingSound in class BucketItem
      Mappings:
      Namespace Name Mixin selector
      named playEmptyingSound Lnet/minecraft/item/BucketItem;playEmptyingSound(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_7727 Lnet/minecraft/class_1755;method_7727(Lnet/minecraft/class_1309;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)V
      official a Lcyy;a(Lbyf;Ldkk;Liw;)V
    • spawnEntity Link icon

      private void spawnEntity(ServerWorld world, ItemStack stack, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named spawnEntity Lnet/minecraft/item/EntityBucketItem;spawnEntity(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_7824 Lnet/minecraft/class_1785;method_7824(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)V
      official a Ldaz;a(Lasb;Ldak;Liw;)V