Class ItemDelegatingEntityIotaHolder

java.lang.Object
at.petrak.hexcasting.api.addldata.ItemDelegatingEntityIotaHolder
All Implemented Interfaces:
ADIotaHolder
Direct Known Subclasses:
ItemDelegatingEntityIotaHolder.ToItemEntity, ItemDelegatingEntityIotaHolder.ToItemFrame, ItemDelegatingEntityIotaHolder.ToWallScroll

public abstract class ItemDelegatingEntityIotaHolder extends Object implements ADIotaHolder
  • Constructor Details

    • ItemDelegatingEntityIotaHolder

      public ItemDelegatingEntityIotaHolder(Supplier<net.minecraft.world.item.ItemStack> stackSupplier, Consumer<net.minecraft.world.item.ItemStack> save)
  • Method Details

    • readIotaTag

      @Nullable public @Nullable net.minecraft.nbt.CompoundTag readIotaTag()
      Specified by:
      readIotaTag in interface ADIotaHolder
    • writeable

      public boolean writeable()
      Specified by:
      writeable in interface ADIotaHolder
      Returns:
      whether it is possible to write to this IotaHolder
    • writeIota

      public boolean writeIota(@Nullable @Nullable Iota datum, boolean simulate)
      Specified by:
      writeIota in interface ADIotaHolder
      Returns:
      if the writing succeeded/would succeed
    • readIota

      @Nullable public @Nullable Iota readIota(net.minecraft.server.level.ServerLevel world)
      Specified by:
      readIota in interface ADIotaHolder
    • emptyIota

      @Nullable public @Nullable Iota emptyIota()
      Specified by:
      emptyIota in interface ADIotaHolder