public final class CodeBookItem
extends net.minecraft.item.BookItem
| Modifier and Type | Class and Description |
|---|---|
static class |
CodeBookItem.Data
Wrapper for list of pages stored in the code book.
|
| Constructor and Description |
|---|
CodeBookItem(net.minecraft.item.Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTooltip(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
java.util.List<net.minecraft.text.Text> tooltip,
net.minecraft.client.item.TooltipContext options) |
int |
getEnchantability() |
boolean |
isEnchantable(net.minecraft.item.ItemStack stack) |
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) |
addPropertyGetter, appendStacks, asItem, byRawId, canMine, canRepair, finishUsing, fromBlock, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeed, getModifiers, getName, getName, getOrCreateTranslationKey, getPropertyGetter, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasPropertyGetters, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, useOnEntity@Environment(value=CLIENT)
public void appendTooltip(net.minecraft.item.ItemStack stack,
@Nullable
net.minecraft.world.World world,
java.util.List<net.minecraft.text.Text> tooltip,
net.minecraft.client.item.TooltipContext options)
appendTooltip 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 net.minecraft.util.ActionResult useOnBlock(net.minecraft.item.ItemUsageContext context)
useOnBlock in class net.minecraft.item.Itempublic boolean isEnchantable(net.minecraft.item.ItemStack stack)
isEnchantable in class net.minecraft.item.BookItempublic int getEnchantability()
getEnchantability in class net.minecraft.item.BookItem