public class ItemEmptyPCB extends ItemNonDespawning implements ICustomDurabilityBar
| Constructor and Description |
|---|
ItemEmptyPCB() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World player,
java.util.List<net.minecraft.util.text.ITextComponent> infoList,
net.minecraft.client.util.ITooltipFlag par4) |
void |
fillItemCategory(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items) |
float |
getCustomDurability(net.minecraft.item.ItemStack stack)
Get the actual value for the custom durability of the item, which controls the width of the drawn bar.
|
int |
getCustomDurabilityColour(net.minecraft.item.ItemStack stack)
Get the colour of the custom durability bar for this item, in RGB format (alpha will always be full)
|
double |
getDurabilityForDisplay(net.minecraft.item.ItemStack stack) |
static int |
getEtchProgress(net.minecraft.item.ItemStack stack) |
int |
getRGBDurabilityForDisplay(net.minecraft.item.ItemStack stack) |
boolean |
isShowingOtherBar(net.minecraft.item.ItemStack stack)
Is this item already showing a regular durability bar? This controls if the custom bar needs a small Y
offset so both bars can be seen.
|
boolean |
onEntityItemUpdate(net.minecraft.item.ItemStack stack,
net.minecraft.entity.item.ItemEntity entityItem) |
static void |
setEtchProgress(net.minecraft.item.ItemStack stack,
int progress) |
boolean |
shouldShowCustomDurabilityBar(net.minecraft.item.ItemStack stack)
Check if this item should be showing its custom bar at this time.
|
boolean |
showDurabilityBar(net.minecraft.item.ItemStack stack) |
allowdedIn, 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, inventoryTick, is, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, use, useOn, useOnRelease, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, 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, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimationpublic void appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World player,
java.util.List<net.minecraft.util.text.ITextComponent> infoList,
net.minecraft.client.util.ITooltipFlag par4)
appendHoverText in class ItemNonDespawningpublic static int getEtchProgress(net.minecraft.item.ItemStack stack)
public static void setEtchProgress(net.minecraft.item.ItemStack stack,
int progress)
public double getDurabilityForDisplay(net.minecraft.item.ItemStack stack)
getDurabilityForDisplay in interface net.minecraftforge.common.extensions.IForgeItempublic boolean showDurabilityBar(net.minecraft.item.ItemStack stack)
showDurabilityBar in interface net.minecraftforge.common.extensions.IForgeItempublic int getRGBDurabilityForDisplay(net.minecraft.item.ItemStack stack)
getRGBDurabilityForDisplay in interface net.minecraftforge.common.extensions.IForgeItempublic boolean onEntityItemUpdate(net.minecraft.item.ItemStack stack,
net.minecraft.entity.item.ItemEntity entityItem)
onEntityItemUpdate in interface net.minecraftforge.common.extensions.IForgeItemonEntityItemUpdate in class ItemNonDespawningpublic void fillItemCategory(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
fillItemCategory in class net.minecraft.item.Itempublic boolean shouldShowCustomDurabilityBar(net.minecraft.item.ItemStack stack)
ICustomDurabilityBarshouldShowCustomDurabilityBar in interface ICustomDurabilityBarstack - the item stackpublic int getCustomDurabilityColour(net.minecraft.item.ItemStack stack)
ICustomDurabilityBargetCustomDurabilityColour in interface ICustomDurabilityBarstack - the item stackpublic float getCustomDurability(net.minecraft.item.ItemStack stack)
ICustomDurabilityBargetCustomDurability in interface ICustomDurabilityBarstack - the item stackpublic boolean isShowingOtherBar(net.minecraft.item.ItemStack stack)
ICustomDurabilityBarisShowingOtherBar in interface ICustomDurabilityBarstack - the item stack