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
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationFields inherited from class at.petrak.hexcasting.common.items.magic.ItemMediaHolder
HEX_COLOR, TAG_MAX_MEDIA, TAG_MEDIAFields 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_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanProvideMedia(net.minecraft.world.item.ItemStack stack) booleancanRecharge(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, withMediaMethods 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, verifyTagAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods 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)
-