Package com.pixelmonmod.pixelmon.items
Class UIElementItem
java.lang.Object
net.minecraft.world.item.Item
com.pixelmonmod.pixelmon.items.PixelmonItem
com.pixelmonmod.pixelmon.items.UIElementItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement
,net.minecraft.world.level.ItemLike
,net.minecraftforge.common.extensions.IForgeItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.pixelmonmod.pixelmon.items.PixelmonItem
bewlr
Fields inherited from class net.minecraft.world.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UIElementItem.Builder
builder()
static UIElementItem.Builder
builder
(net.minecraft.world.item.ItemStack stack) static Optional<float[]>
getColor
(net.minecraft.world.item.ItemStack stack) static Optional<float[]>
getColor
(net.minecraft.world.item.ItemStack stack, boolean hover) static Optional<float[]>
getHoverColor
(net.minecraft.world.item.ItemStack stack) static Optional<net.minecraft.resources.ResourceLocation>
getHoverImage
(net.minecraft.world.item.ItemStack stack) getHoverText
(net.minecraft.world.item.ItemStack stack) static Optional<net.minecraft.resources.ResourceLocation>
getImage
(net.minecraft.world.item.ItemStack stack) static Optional<net.minecraft.resources.ResourceLocation>
getImage
(net.minecraft.world.item.ItemStack stack, boolean hover) getImageHeight
(net.minecraft.world.item.ItemStack stack) getImageU
(net.minecraft.world.item.ItemStack stack) getImageV
(net.minecraft.world.item.ItemStack stack) getImageWidth
(net.minecraft.world.item.ItemStack stack) static float
getRotation
(net.minecraft.world.item.ItemStack stack) static float[]
getScale
(net.minecraft.world.item.ItemStack stack) getText
(net.minecraft.world.item.ItemStack stack) getText
(net.minecraft.world.item.ItemStack stack, boolean hover) static TextJustification
getTextJustification
(net.minecraft.world.item.ItemStack stack) static short
getTextScale
(net.minecraft.world.item.ItemStack stack) getXOffset
(net.minecraft.world.item.ItemStack stack) getXOverride
(net.minecraft.world.item.ItemStack stack) getYOffset
(net.minecraft.world.item.ItemStack stack) getYOverride
(net.minecraft.world.item.ItemStack stack) getZLevel
(net.minecraft.world.item.ItemStack stack) Methods inherited from class com.pixelmonmod.pixelmon.items.PixelmonItem
appendHoverText, causeTempt, getLocalizedName, getTooltipText, getTooltipText, getUseAnimation, hideFromSearches, initializeClient, isBookEnchantable, isDrink, isEdible, isEnchantable, isFoil, isSearchable, setDrink, setHasEffect, setTempt, useFromBag, useFromBag
Methods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, use, useOn, useOnRelease, verifyTagAfterLoad
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
Methods inherited from interface net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, initCapabilities, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
Field Details
-
IMAGE
- See Also:
-
HOVER
- See Also:
-
TEXT
- See Also:
-
HOVER_TEXT
- See Also:
-
TEXT_JUSTIFICATION
- See Also:
-
TEXT_SCALE
- See Also:
-
X_OFFSET
- See Also:
-
Y_OFFSET
- See Also:
-
X_OVERRIDE
- See Also:
-
Y_OVERRIDE
- See Also:
-
Z_LEVEL
- See Also:
-
IMAGE_WIDTH
- See Also:
-
IMAGE_HEIGHT
- See Also:
-
IMAGE_U
- See Also:
-
IMAGE_V
- See Also:
-
SCALE_X
- See Also:
-
SCALE_Y
- See Also:
-
ROTATION
- See Also:
-
R
- See Also:
-
G
- See Also:
-
B
- See Also:
-
A
- See Also:
-
HR
- See Also:
-
HG
- See Also:
-
HB
- See Also:
-
HA
- See Also:
-
-
Constructor Details
-
UIElementItem
public UIElementItem()
-
-
Method Details
-
builder
-
builder
-
getImage
public static Optional<net.minecraft.resources.ResourceLocation> getImage(net.minecraft.world.item.ItemStack stack, boolean hover) -
getImage
public static Optional<net.minecraft.resources.ResourceLocation> getImage(net.minecraft.world.item.ItemStack stack) -
getHoverImage
public static Optional<net.minecraft.resources.ResourceLocation> getHoverImage(net.minecraft.world.item.ItemStack stack) -
getXOffset
-
getYOffset
-
getXOverride
-
getYOverride
-
getZLevel
-
getImageWidth
-
getImageHeight
-
getImageU
-
getImageV
-
getColor
-
getColor
-
getHoverColor
-
getText
-
getHoverText
-
getText
-
getTextJustification
-
getTextScale
public static short getTextScale(net.minecraft.world.item.ItemStack stack) -
getScale
public static float[] getScale(net.minecraft.world.item.ItemStack stack) -
getRotation
public static float getRotation(net.minecraft.world.item.ItemStack stack)
-