Package net.minecraft.item
Class EntityBucketItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BucketItem
net.minecraft.item.EntityBucketItem
- All Implemented Interfaces:
FluidModificationItem,ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/item/EntityBucketItemintermediary net/minecraft/class_1785official daz
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings, Item.TooltipContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SoundEventprivate final EntityType<? extends MobEntity> Fields inherited from class net.minecraft.item.Item
BASE_ATTACK_DAMAGE_MODIFIER_ID, BASE_ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_BLOCKS_ATTACKS_MAX_USE_TIME, DEFAULT_MAX_COUNT, ENTRY_CODEC, ENTRY_PACKET_CODEC, ITEM_BAR_STEPS, MAX_MAX_COUNT, translationKeyFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionEntityBucketItem(EntityType<? extends MobEntity> type, Fluid fluid, SoundEvent emptyingSound, Item.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidplayEmptyingSound(@Nullable LivingEntity user, WorldAccess world, BlockPos pos) private voidspawnEntity(ServerWorld world, ItemStack stack, BlockPos pos) Methods inherited from class net.minecraft.item.BucketItem
getEmptiedStack, placeFluid, useMethods inherited from class net.minecraft.item.Item
appendTooltip, asItem, byRawId, canBeNested, canMine, finishUsing, fromBlock, getBonusAttackDamage, getComponents, getDamageSource, getDefaultStack, getItemBarColor, getItemBarStep, getMaxCount, getMaxUseTime, getMiningSpeed, getName, getName, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getUseAction, hasGlint, inventoryTick, isCorrectForDrops, isItemBarVisible, isUsedOnRelease, onClicked, onCraft, onCraftByPlayer, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postDamageEntity, postHit, postMine, postProcessComponents, raycast, shouldShowOperatorBlockWarnings, toString, usageTick, useOnBlock, useOnEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
entityType
- Mappings:
Namespace Name Mixin selector named entityTypeLnet/minecraft/item/EntityBucketItem;entityType:Lnet/minecraft/entity/EntityType;intermediary field_7991Lnet/minecraft/class_1785;field_7991:Lnet/minecraft/class_1299;official aLdaz;a:Lbxn;
-
emptyingSound
- Mappings:
Namespace Name Mixin selector named emptyingSoundLnet/minecraft/item/EntityBucketItem;emptyingSound:Lnet/minecraft/sound/SoundEvent;intermediary field_28356Lnet/minecraft/class_1785;field_28356:Lnet/minecraft/class_3414;official bLdaz;b:Lawx;
-
-
Constructor Details
-
EntityBucketItem
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;)Vintermediary <init>Lnet/minecraft/class_1785;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_3611;Lnet/minecraft/class_3414;Lnet/minecraft/class_1792$class_1793;)Vofficial <init>Ldaz;<init>(Lbxn;Lexz;Lawx;Ldag$a;)V
-
-
Method Details
-
onEmptied
public void onEmptied(@Nullable @Nullable LivingEntity user, World world, ItemStack stack, BlockPos pos) - Specified by:
onEmptiedin interfaceFluidModificationItem- Overrides:
onEmptiedin classBucketItem- Mappings:
Namespace Name Mixin selector named onEmptiedLnet/minecraft/item/FluidModificationItem;onEmptied(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_7728Lnet/minecraft/class_5633;method_7728(Lnet/minecraft/class_1309;Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)Vofficial aLczg;a(Lbyf;Ldkj;Ldak;Liw;)V
-
playEmptyingSound
protected void playEmptyingSound(@Nullable @Nullable LivingEntity user, WorldAccess world, BlockPos pos) - Overrides:
playEmptyingSoundin classBucketItem- Mappings:
Namespace Name Mixin selector named playEmptyingSoundLnet/minecraft/item/BucketItem;playEmptyingSound(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_7727Lnet/minecraft/class_1755;method_7727(Lnet/minecraft/class_1309;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Vofficial aLcyy;a(Lbyf;Ldkk;Liw;)V
-
spawnEntity
- Mappings:
Namespace Name Mixin selector named spawnEntityLnet/minecraft/item/EntityBucketItem;spawnEntity(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_7824Lnet/minecraft/class_1785;method_7824(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)Vofficial aLdaz;a(Lasb;Ldak;Liw;)V
-