Interface IoticBlocksAPI


public interface IoticBlocksAPI
  • Field Details

  • Method Details

    • findIotaHolder

      @Nullable @Nullable at.petrak.hexcasting.api.addldata.ADIotaHolder findIotaHolder(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.core.BlockPos pos)
      Attempts to find an ADIotaHolder instance for a block, in the following order of precedence: This order may change in the future. You should try not to rely on it; ideally, implement only one of these options.
    • registerIotaHolderProvider

      boolean registerIotaHolderProvider(@NotNull @NotNull net.minecraft.resources.ResourceLocation id, @NotNull @NotNull IotaHolderProvider provider)
      Registers an iota holder provider for a block to be used with IoticBlocks' read/write block patterns.

      NOTE: you should implement IotaHolderProvider on the block or ADIotaHolder on the block entity if possible. This method should only be used in cases where that's not feasible, such as an optional hex dependency or adding a provider to another mod's block.

      Parameters:
      id - the resloc/id for the block (eg minecraft:stone)
      Returns:
      if the holder was successfully registered
      See Also: