Class ItemThoughtKnot

java.lang.Object
net.minecraft.world.item.Item
at.petrak.hexcasting.common.items.storage.ItemThoughtKnot
All Implemented Interfaces:
IotaHolderItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike

public class ItemThoughtKnot extends net.minecraft.world.item.Item implements IotaHolderItem
  • 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 String
     
    static final net.minecraft.resources.ResourceLocation
     

    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

    Fields inherited from interface at.petrak.hexcasting.api.item.IotaHolderItem

    TAG_OVERRIDE_VISUALLY
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemThoughtKnot(net.minecraft.world.item.Item.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendHoverText(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)
     
    boolean
    canWrite(net.minecraft.world.item.ItemStack stack, @Nullable Iota iota)
    Write null to indicate erasing
    @Nullable net.minecraft.nbt.CompoundTag
    readIotaTag(net.minecraft.world.item.ItemStack stack)
     
    boolean
    writeable(net.minecraft.world.item.ItemStack stack)
     
    void
    writeDatum(net.minecraft.world.item.ItemStack stack, @Nullable Iota iota)
    Write null to indicate erasing

    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, 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, 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.IotaHolderItem

    emptyIota, getColor, readIota
  • Field Details

    • WRITTEN_PRED

      public static final net.minecraft.resources.ResourceLocation WRITTEN_PRED
    • TAG_DATA

      public static final String TAG_DATA
      See Also:
  • Constructor Details

    • ItemThoughtKnot

      public ItemThoughtKnot(net.minecraft.world.item.Item.Properties properties)
  • Method Details

    • readIotaTag

      @Nullable public @Nullable net.minecraft.nbt.CompoundTag readIotaTag(net.minecraft.world.item.ItemStack stack)
      Specified by:
      readIotaTag in interface IotaHolderItem
    • writeable

      public boolean writeable(net.minecraft.world.item.ItemStack stack)
      Specified by:
      writeable in interface IotaHolderItem
      Returns:
      whether it is possible to write to this IotaHolder
    • canWrite

      public boolean canWrite(net.minecraft.world.item.ItemStack stack, @Nullable @Nullable Iota iota)
      Description copied from interface: IotaHolderItem
      Write null to indicate erasing
      Specified by:
      canWrite in interface IotaHolderItem
    • writeDatum

      public void writeDatum(net.minecraft.world.item.ItemStack stack, @Nullable @Nullable Iota iota)
      Description copied from interface: IotaHolderItem
      Write null to indicate erasing
      Specified by:
      writeDatum in interface IotaHolderItem
    • 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:
      appendHoverText in class net.minecraft.world.item.Item