public final class ManualBookItem
extends net.minecraft.item.BookItem
| Constructor and Description |
|---|
ManualBookItem(net.minecraft.item.Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildTooltip(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
java.util.List<net.minecraft.text.TextComponent> tooltip,
net.minecraft.client.item.TooltipOptions options) |
int |
getEnchantability() |
boolean |
isTool(net.minecraft.item.ItemStack stack) |
static boolean |
tryOpenManual(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
java.lang.String path) |
net.minecraft.util.TypedActionResult<net.minecraft.item.ItemStack> |
use(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
net.minecraft.util.ActionResult |
useOnBlock(net.minecraft.item.ItemUsageContext context) |
addProperty, addStacksForDisplay, beforeBlockBreak, byRawId, canDamage, canRepair, getAttributeModifiers, getBlockBreakingSpeed, getDefaultStack, getDurability, getHitResult, getItem, getItemFromBlock, getItemGroup, getMaxAmount, getMaxUseTime, getOrCreateTranslationKey, getProperty, getRarity, getRawIdByItem, getRecipeRemainder, getTextComponent, getTranslatedNameTrimmed, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasProperties, hasRecipeRemainder, interactWithEntity, isEffectiveOn, isInItemGroup, isMap, matches, method_7838, method_7852, onBlockBroken, onCrafted, onEntityDamaged, onEntityTick, onItemFinishedUsing, onItemStopUsing, onTagDeserialized, requiresClientSyncpublic static boolean tryOpenManual(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
@Nullable
java.lang.String path)
public void buildTooltip(net.minecraft.item.ItemStack stack,
@Nullable
net.minecraft.world.World world,
java.util.List<net.minecraft.text.TextComponent> tooltip,
net.minecraft.client.item.TooltipOptions options)
buildTooltip in class net.minecraft.item.Itempublic net.minecraft.util.ActionResult useOnBlock(net.minecraft.item.ItemUsageContext context)
useOnBlock in class net.minecraft.item.Itempublic net.minecraft.util.TypedActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
use in class net.minecraft.item.Itempublic boolean isTool(net.minecraft.item.ItemStack stack)
isTool in class net.minecraft.item.BookItempublic int getEnchantability()
getEnchantability in class net.minecraft.item.BookItem