Class ItemMediaBattery

java.lang.Object
net.minecraft.world.item.Item
at.petrak.hexcasting.common.items.magic.ItemMediaHolder
at.petrak.hexcasting.common.items.magic.ItemMediaBattery
All Implemented Interfaces:
MediaHolderItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike

public class ItemMediaBattery extends ItemMediaHolder
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     

    Fields inherited from class at.petrak.hexcasting.common.items.magic.ItemMediaHolder

    HEX_COLOR, TAG_MAX_MEDIA, TAG_MEDIA

    Fields inherited from class net.minecraft.world.item.Item

    BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemMediaBattery(net.minecraft.world.item.Item.Properties pProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canProvideMedia(net.minecraft.world.item.ItemStack stack)
     
    boolean
    canRecharge(net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class at.petrak.hexcasting.common.items.magic.ItemMediaHolder

    appendHoverText, canBeDepleted, getBarColor, getBarWidth, getMaxMedia, getMedia, isBarVisible, setMedia, withMedia

    Methods inherited from class net.minecraft.world.item.Item

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, 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 at.petrak.hexcasting.api.item.MediaHolderItem

    getConsumptionPriority, getMediaFullness, insertMedia, withdrawMedia
  • Field Details

    • MEDIA_PREDICATE

      public static final net.minecraft.resources.ResourceLocation MEDIA_PREDICATE
    • MAX_MEDIA_PREDICATE

      public static final net.minecraft.resources.ResourceLocation MAX_MEDIA_PREDICATE
  • Constructor Details

    • ItemMediaBattery

      public ItemMediaBattery(net.minecraft.world.item.Item.Properties pProperties)
  • Method Details

    • canProvideMedia

      public boolean canProvideMedia(net.minecraft.world.item.ItemStack stack)
    • canRecharge

      public boolean canRecharge(net.minecraft.world.item.ItemStack stack)