类 BoneMealItem
- java.lang.Object
-
- net.minecraft.item.Item
-
- net.minecraft.item.BoneMealItem
-
- 所有已实现的接口:
ItemConvertible
public class BoneMealItem extends Item
- Mappings:
Namespace Name official bnxintermediary net/minecraft/class_1752named net/minecraft/item/BoneMealItem
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.item.Item
Item.Settings
-
-
字段概要
字段 修饰符和类型 字段 说明 static intfield_30851static intfield_30852static intfield_30853-
从类继承的字段 net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, field_30888, field_30889, group
-
-
构造器概要
构造器 构造器 说明 BoneMealItem(Item.Settings settings)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static voidcreateParticles(WorldAccess world, BlockPos pos, int count)ActionResultuseOnBlock(ItemUsageContext context)Called when an item is used on a block.static booleanuseOnFertilizable(ItemStack stack, World world, BlockPos pos)static booleanuseOnGround(ItemStack stack, World world, BlockPos blockPos, @Nullable Direction facing)-
从类继承的方法 net.minecraft.item.Item
appendStacks, appendTooltip, 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, use, useOnEntity
-
-
-
-
字段详细资料
-
field_30851
public static final int field_30851
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLbnx;a:Iintermediary field_30851Lnet/minecraft/class_1752;field_30851:Inamed field_30851Lnet/minecraft/item/BoneMealItem;field_30851:I
-
field_30852
public static final int field_30852
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLbnx;b:Iintermediary field_30852Lnet/minecraft/class_1752;field_30852:Inamed field_30852Lnet/minecraft/item/BoneMealItem;field_30852:I
-
field_30853
public static final int field_30853
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLbnx;c:Iintermediary field_30853Lnet/minecraft/class_1752;field_30853:Inamed field_30853Lnet/minecraft/item/BoneMealItem;field_30853:I
-
-
构造器详细资料
-
BoneMealItem
public BoneMealItem(Item.Settings settings)
- Mappings:
Namespace Name Mixin selector official <init>Lbpn;<init>(Lbpn$a;)Vintermediary <init>Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)Vnamed <init>Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)V
-
-
方法详细资料
-
useOnBlock
public ActionResult useOnBlock(ItemUsageContext context)
Called when an item is used on a block.This method is called on both the logical client and logical server, so take caution when using this method. The logical side can be checked using
context.getWorld().isClient().- 覆盖:
useOnBlock在类中Item- 参数:
context- the usage context- 返回:
- an action result that specifies if using the item on a block was successful.
- Mappings:
Namespace Name Mixin selector official aLbpn;a(Lbrt;)Larg;intermediary method_7884Lnet/minecraft/class_1792;method_7884(Lnet/minecraft/class_1838;)Lnet/minecraft/class_1269;named useOnBlockLnet/minecraft/item/Item;useOnBlock(Lnet/minecraft/item/ItemUsageContext;)Lnet/minecraft/util/ActionResult;
-
useOnFertilizable
public static boolean useOnFertilizable(ItemStack stack, World world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLbnx;a(Lbpr;Lbvr;Lgb;)Zintermediary method_7720Lnet/minecraft/class_1752;method_7720(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Znamed useOnFertilizableLnet/minecraft/item/BoneMealItem;useOnFertilizable(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
useOnGround
public static boolean useOnGround(ItemStack stack, World world, BlockPos blockPos, @Nullable @Nullable Direction facing)
- Mappings:
Namespace Name Mixin selector official aLbnx;a(Lbpr;Lbvr;Lgb;Lgg;)Zintermediary method_7719Lnet/minecraft/class_1752;method_7719(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Znamed useOnGroundLnet/minecraft/item/BoneMealItem;useOnGround(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
createParticles
public static void createParticles(WorldAccess world, BlockPos pos, int count)
- Mappings:
Namespace Name Mixin selector official aLbnx;a(Lbvs;Lgb;I)Vintermediary method_7721Lnet/minecraft/class_1752;method_7721(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;I)Vnamed createParticlesLnet/minecraft/item/BoneMealItem;createParticles(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;I)V
-
-