Interface GTAdapter
- All Known Implementing Classes:
GT5UnofficialAdapter
public interface GTAdapter
GT-version-specific operations used by GTNH gametest helpers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidfixAllMaintenanceIssues(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) Fix all six maintenance issues onmteimmediately.getCheckRecipeResultId(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) The string identifier of the lastCheckRecipeResult(e.g.intgetEfficiency(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) Cleanroom controller efficiency in the 0–10000 range (0.00 %–100.00 %).longgetEUt(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) Energy consumed (or produced) per tick for the current recipe.intgetLastParallel(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) The parallel count used during the last recipe check.intgetMaxProgressTime(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) Total recipe duration in ticks for the current/last recipe.gregtech.api.interfaces.tileentity.IGregTechTileEntitygetOutputHatchTE(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte, int index) N-th fluid output hatch in canonical multiblock ordering;nullif out of range or empty.longgetPollution(net.minecraft.world.chunk.Chunk chunk) Pollution units accumulated inchunk.intgetProgressTime(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) Current recipe progress in ticks.longgetRecipesDone(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) Total number of recipes completed since the machine was placed.intgetRepairStatus(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) Number of maintenance issues that have been repaired, in the range 0–6 (where 6 means fully maintained).longgetStoredEU(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) EU currently stored in the machine's internal energy buffer.booleanisActive(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) Whether the multi-block is currently processing a recipe (i.e.booleanisStructureFormed(gregtech.api.interfaces.metatileentity.IMetaTileEntity mte) Whether the multi-block structure is fully formed.voidrotateStructureTileNbt(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 inchunk. -
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 aslongbecauseMTEExtendedPowerMultiBlockBasesubclasses (EBF, fusion, etc.) use along-backed energy field that can exceedintrange. -
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 onmteimmediately. 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
The string identifier of the lastCheckRecipeResult(e.g."success","no_recipe", …). Nevernull. -
snapshotRecipeState
Bundled recipe-state read used by the warp differ. Single call to minimise per-tick polling cost. -
snapshotMaintenance
Bitmask of the six maintenance flags. A set bit means the issue is currently present. -
snapshotHatches
Sizes of the standard hatch lists. Used forMachineFormedevent 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;nullif 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.
-