Class ItemAbacus
java.lang.Object
net.minecraft.world.item.Item
at.petrak.hexcasting.common.items.storage.ItemAbacus
- All Implemented Interfaces:
IotaHolderItem,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
FieldsFields 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_REGISTRIESFields inherited from interface at.petrak.hexcasting.api.item.IotaHolderItem
TAG_OVERRIDE_VISUALLY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHoverText(net.minecraft.world.item.ItemStack pStack, @Nullable net.minecraft.world.level.Level pLevel, List<net.minecraft.network.chat.Component> pTooltipComponents, net.minecraft.world.item.TooltipFlag pIsAdvanced) booleanWritenullto indicate erasing@Nullable net.minecraft.nbt.CompoundTagreadIotaTag(net.minecraft.world.item.ItemStack stack) net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) booleanwriteable(net.minecraft.world.item.ItemStack stack) voidwriteDatum(net.minecraft.world.item.ItemStack stack, Iota datum) Writenullto indicate erasingMethods 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, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, 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.IotaHolderItem
emptyIota, getColor, readIota
-
Field Details
-
TAG_VALUE
- See Also:
-
-
Constructor Details
-
ItemAbacus
public ItemAbacus(net.minecraft.world.item.Item.Properties pProperties)
-
-
Method Details
-
readIotaTag
@Nullable public @Nullable net.minecraft.nbt.CompoundTag readIotaTag(net.minecraft.world.item.ItemStack stack) - Specified by:
readIotaTagin interfaceIotaHolderItem
-
writeable
public boolean writeable(net.minecraft.world.item.ItemStack stack) - Specified by:
writeablein interfaceIotaHolderItem- Returns:
- whether it is possible to write to this IotaHolder
-
canWrite
Description copied from interface:IotaHolderItemWritenullto indicate erasing- Specified by:
canWritein interfaceIotaHolderItem
-
writeDatum
Description copied from interface:IotaHolderItemWritenullto indicate erasing- Specified by:
writeDatumin interfaceIotaHolderItem
-
use
public net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) - Overrides:
usein classnet.minecraft.world.item.Item
-
appendHoverText
public void appendHoverText(net.minecraft.world.item.ItemStack pStack, @Nullable @Nullable net.minecraft.world.level.Level pLevel, List<net.minecraft.network.chat.Component> pTooltipComponents, net.minecraft.world.item.TooltipFlag pIsAdvanced) - Overrides:
appendHoverTextin classnet.minecraft.world.item.Item
-