public class ShrineOrbItem
extends net.minecraft.item.Item
| Modifier and Type | Field and Description |
|---|---|
static int |
full
The number of KOs needed for the orb to be full.
|
java.lang.String |
itemNames
The name of the orb.
|
| Constructor and Description |
|---|
ShrineOrbItem(ShrineType shrine)
Initializes an orb.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canApplyAtEnchantingTable(net.minecraft.item.ItemStack stack,
net.minecraft.enchantment.Enchantment enchantment) |
void |
fillItemCategory(net.minecraft.item.ItemGroup tab,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
Specify how this item will appear in the creative item menu.
|
double |
getDurabilityForDisplay(net.minecraft.item.ItemStack stack)
Queries the percentage of the 'Durability' bar that should be drawn.
|
void |
inventoryTick(net.minecraft.item.ItemStack par1ItemStack,
net.minecraft.world.World par2World,
net.minecraft.entity.Entity par3Entity,
int par4,
boolean par5) |
boolean |
isBookEnchantable(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemStack book) |
boolean |
isEnchantable(net.minecraft.item.ItemStack p_77616_1_) |
boolean |
showDurabilityBar(net.minecraft.item.ItemStack stack)
We override this so that orbs with full damage
(i.e.
|
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
use(net.minecraft.world.World worldIn,
net.minecraft.entity.player.PlayerEntity playerIn,
net.minecraft.util.Hand hand) |
allowdedIn, appendHoverText, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, is, isComplex, isCorrectToolForDrops, isEdible, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimationpublic static int full
public java.lang.String itemNames
public ShrineOrbItem(ShrineType shrine)
shrine - The shrine the orb is compatible with.public void inventoryTick(net.minecraft.item.ItemStack par1ItemStack,
net.minecraft.world.World par2World,
net.minecraft.entity.Entity par3Entity,
int par4,
boolean par5)
inventoryTick in class net.minecraft.item.Itempublic net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World worldIn,
net.minecraft.entity.player.PlayerEntity playerIn,
net.minecraft.util.Hand hand)
use in class net.minecraft.item.Itempublic boolean showDurabilityBar(net.minecraft.item.ItemStack stack)
stack - The current Item Stackpublic double getDurabilityForDisplay(net.minecraft.item.ItemStack stack)
stack - A shrine orb item stack.public boolean isEnchantable(net.minecraft.item.ItemStack p_77616_1_)
isEnchantable in class net.minecraft.item.Itempublic boolean canApplyAtEnchantingTable(net.minecraft.item.ItemStack stack,
net.minecraft.enchantment.Enchantment enchantment)
public boolean isBookEnchantable(net.minecraft.item.ItemStack stack,
net.minecraft.item.ItemStack book)
public void fillItemCategory(net.minecraft.item.ItemGroup tab,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
fillItemCategory in class net.minecraft.item.Itemtab - The ItemGroup tab this will appear in. Shrine Orbs appear in the MISC tab.items - The list of items in the creative menu that we add the orb to.