IEnergyStorage
Link to ienergystorage
Importare la Classe
Link to importare-la-classe
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.capability.IEnergyStorage;
Metodi
Link to metodi
Name: canExtract
Return Type: boolean
ZenScript Copy// IEnergyStorage.canExtract() as boolean
myIEnergyStorage.canExtract();
Name: canReceive
Return Type: boolean
ZenScript Copy// IEnergyStorage.canReceive() as boolean
myIEnergyStorage.canReceive();
Name: extractEnergy
Return Type: int
ZenScript CopyIEnergyStorage.extractEnergy(maxExtract as int, simulate as boolean) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro maxExtract | Tipo int | Descrizione No Description Provided |
Parametro simulate | Tipo boolean | Descrizione No Description Provided |
Name: getEnergyStored
Return Type: int
ZenScript Copy// IEnergyStorage.getEnergyStored() as int
myIEnergyStorage.getEnergyStored();
Name: getMaxEnergyStored
Return Type: int
ZenScript Copy// IEnergyStorage.getMaxEnergyStored() as int
myIEnergyStorage.getMaxEnergyStored();
Name: receiveEnergy
Return Type: int
ZenScript CopyIEnergyStorage.receiveEnergy(maxReceive as int, simulate as boolean) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro maxReceive | Tipo int | Descrizione No Description Provided |
Parametro simulate | Tipo boolean | Descrizione No Description Provided |
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome canExtract | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome canReceive | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome energyStored | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome maxEnergyStored | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |