Interface GTAdapter

All Known Implementing Classes:
GT5UnofficialAdapter

public interface GTAdapter
GT-version-specific operations used by GTNH gametest helpers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fixAllMaintenanceIssues(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Fix all six maintenance issues on mte immediately.
    getCheckRecipeResultId(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    The string identifier of the last CheckRecipeResult (e.g.
    int
    getEfficiency(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Cleanroom controller efficiency in the 0–10000 range (0.00 %–100.00 %).
    long
    getEUt(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Energy consumed (or produced) per tick for the current recipe.
    int
    getLastParallel(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    The parallel count used during the last recipe check.
    int
    getMaxProgressTime(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Total recipe duration in ticks for the current/last recipe.
    gregtech.api.interfaces.tileentity.IGregTechTileEntity
    getOutputHatchTE(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte, int index)
    N-th fluid output hatch in canonical multiblock ordering; null if out of range or empty.
    long
    getPollution(net.minecraft.world.chunk.Chunk chunk)
    Pollution units accumulated in chunk.
    int
    getProgressTime(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Current recipe progress in ticks.
    long
    getRecipesDone(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Total number of recipes completed since the machine was placed.
    int
    getRepairStatus(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Number of maintenance issues that have been repaired, in the range 0–6 (where 6 means fully maintained).
    long
    getStoredEU(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    EU currently stored in the machine's internal energy buffer.
    boolean
    isActive(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Whether the multi-block is currently processing a recipe (i.e.
    boolean
    isStructureFormed(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Whether the multi-block structure is fully formed.
    void
    rotateStructureTileNbt(net.minecraft.nbt.NBTTagCompound nbt, int rotation)
    Rotate GT tile entity fields stored in exported structure NBT.
    snapshotHatches(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Sizes of the standard hatch lists.
    snapshotMaintenance(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Bitmask of the six maintenance flags.
    snapshotRecipeState(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
    Bundled recipe-state read used by the warp differ.
  • Method Details

    • getPollution

      long getPollution(net.minecraft.world.chunk.Chunk chunk)
      Pollution units accumulated in chunk.
    • isStructureFormed

      boolean isStructureFormed(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Whether the multi-block structure is fully formed.
    • isActive

      boolean isActive(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Whether the multi-block is currently processing a recipe (i.e. mMaxProgresstime > 0).
    • getProgressTime

      int getProgressTime(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Current recipe progress in ticks.
    • getMaxProgressTime

      int getMaxProgressTime(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Total recipe duration in ticks for the current/last recipe.
    • getEUt

      long getEUt(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Energy consumed (or produced) per tick for the current recipe. Negative values indicate consumption, positive values indicate generation. Returned as long because MTEExtendedPowerMultiBlockBase subclasses (EBF, fusion, etc.) use a long-backed energy field that can exceed int range.
    • getEfficiency

      int getEfficiency(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Cleanroom controller efficiency in the 0–10000 range (0.00 %–100.00 %).
    • getRepairStatus

      int getRepairStatus(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Number of maintenance issues that have been repaired, in the range 0–6 (where 6 means fully maintained).
    • fixAllMaintenanceIssues

      void fixAllMaintenanceIssues(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Fix all six maintenance issues on mte immediately. Useful in test set-up to skip the maintenance requirement.
    • getStoredEU

      long getStoredEU(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      EU currently stored in the machine's internal energy buffer.
    • getRecipesDone

      long getRecipesDone(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Total number of recipes completed since the machine was placed.
    • getLastParallel

      int getLastParallel(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      The parallel count used during the last recipe check. Returns 0 when no recipe has been processed yet.
    • getCheckRecipeResultId

      String getCheckRecipeResultId(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      The string identifier of the last CheckRecipeResult (e.g. "success", "no_recipe", …). Never null.
    • snapshotRecipeState

      RecipeStateSnapshot snapshotRecipeState(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Bundled recipe-state read used by the warp differ. Single call to minimise per-tick polling cost.
    • snapshotMaintenance

      MaintenanceSnapshot snapshotMaintenance(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Bitmask of the six maintenance flags. A set bit means the issue is currently present.
    • snapshotHatches

      HatchTopology snapshotHatches(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte)
      Sizes of the standard hatch lists. Used for MachineFormed event payloads.
    • getOutputHatchTE

      gregtech.api.interfaces.tileentity.IGregTechTileEntity getOutputHatchTE(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte, int index)
      N-th fluid output hatch in canonical multiblock ordering; null if out of range or empty.
    • rotateStructureTileNbt

      void rotateStructureTileNbt(net.minecraft.nbt.NBTTagCompound nbt, int rotation)
      Rotate GT tile entity fields stored in exported structure NBT.