类 EntityBucketItem
- java.lang.Object
-
- net.minecraft.item.Item
-
- net.minecraft.item.BucketItem
-
- net.minecraft.item.EntityBucketItem
-
- 所有已实现的接口:
FluidModificationItem,ItemConvertible
public class EntityBucketItem extends BucketItem
- Mappings:
Namespace Name official bqaintermediary net/minecraft/class_1785named net/minecraft/item/EntityBucketItem
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.item.Item
Item.Settings
-
-
字段概要
字段 修饰符和类型 字段 说明 private SoundEventemptyingSoundprivate EntityType<?>entityType-
从类继承的字段 net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, field_30888, field_30889, group
-
-
构造器概要
构造器 构造器 说明 EntityBucketItem(EntityType<?> type, Fluid fluid, SoundEvent emptyingSound, Item.Settings settings)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidappendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidonEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)protected voidplayEmptyingSound(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos)private voidspawnEntity(ServerWorld world, ItemStack stack, BlockPos pos)-
从类继承的方法 net.minecraft.item.BucketItem
getEmptiedStack, placeFluid, use
-
从类继承的方法 net.minecraft.item.Item
appendStacks, asItem, byRawId, canBeNested, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getEquipSound, getFoodComponent, getGroup, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTooltipData, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isIn, isItemBarVisible, isNetworkSynced, isSuitableFor, isUsedOnRelease, onClicked, onCraft, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postHit, postMine, postProcessNbt, raycast, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntity
-
-
-
-
字段详细资料
-
entityType
private final EntityType<?> entityType
- Mappings:
Namespace Name Mixin selector official aLbqa;a:Lasp;intermediary field_7991Lnet/minecraft/class_1785;field_7991:Lnet/minecraft/class_1299;named entityTypeLnet/minecraft/item/EntityBucketItem;entityType:Lnet/minecraft/entity/EntityType;
-
emptyingSound
private final SoundEvent emptyingSound
- Mappings:
Namespace Name Mixin selector official bLbqa;b:Laev;intermediary field_28356Lnet/minecraft/class_1785;field_28356:Lnet/minecraft/class_3414;named emptyingSoundLnet/minecraft/item/EntityBucketItem;emptyingSound:Lnet/minecraft/sound/SoundEvent;
-
-
构造器详细资料
-
EntityBucketItem
public EntityBucketItem(EntityType<?> type, Fluid fluid, SoundEvent emptyingSound, Item.Settings settings)
- Mappings:
Namespace Name Mixin selector official <init>Lbqa;<init>(Lasp;Lddr;Laev;Lbpn$a;)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;)Vnamed <init>Lnet/minecraft/item/EntityBucketItem;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/fluid/Fluid;Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/item/Item$Settings;)V
-
-
方法详细资料
-
onEmptied
public void onEmptied(@Nullable @Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)
- 指定者:
onEmptied在接口中FluidModificationItem- 覆盖:
onEmptied在类中BucketItem- Mappings:
Namespace Name Mixin selector official aLbol;a(Lbjf;Lbvr;Lbpr;Lgb;)Vintermediary method_7728Lnet/minecraft/class_5633;method_7728(Lnet/minecraft/class_1657;Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)Vnamed onEmptiedLnet/minecraft/item/FluidModificationItem;onEmptied(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)V
-
playEmptyingSound
protected void playEmptyingSound(@Nullable @Nullable PlayerEntity player, WorldAccess world, BlockPos pos)
- 覆盖:
playEmptyingSound在类中BucketItem- Mappings:
Namespace Name Mixin selector official aLboc;a(Lbjf;Lbvs;Lgb;)Vintermediary method_7727Lnet/minecraft/class_1755;method_7727(Lnet/minecraft/class_1657;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Vnamed playEmptyingSoundLnet/minecraft/item/BucketItem;playEmptyingSound(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
-
spawnEntity
private void spawnEntity(ServerWorld world, ItemStack stack, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLbqa;a(Labj;Lbpr;Lgb;)Vintermediary method_7824Lnet/minecraft/class_1785;method_7824(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;Lnet/minecraft/class_2338;)Vnamed spawnEntityLnet/minecraft/item/EntityBucketItem;spawnEntity(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/BlockPos;)V
-
appendTooltip
public void appendTooltip(ItemStack stack, @Nullable @Nullable World world, List<Text> tooltip, TooltipContext context)
- 覆盖:
appendTooltip在类中Item- Mappings:
Namespace Name Mixin selector official aLbpn;a(Lbpr;Lbvr;Ljava/util/List;Lbre;)Vintermediary method_7851Lnet/minecraft/class_1792;method_7851(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Ljava/util/List;Lnet/minecraft/class_1836;)Vnamed appendTooltipLnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/item/TooltipContext;)V
-
-