Capabilities

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.capability.Capabilities;

Members

Field
script.zs
// Capabilities.ENERGY as Capability<IEnergyStorage>
Capabilities.ENERGY

Return Type: Capability<IEnergyStorage>

Field
script.zs
// Capabilities.FLUID as Capability<IFluidHandler>
Capabilities.FLUID

Return Type: Capability<IFluidHandler>

Field
script.zs
// Capabilities.FLUID_ITEM as Capability<IFluidHandlerItem>
Capabilities.FLUID_ITEM

Return Type: Capability<IFluidHandlerItem>

Field
script.zs
// Capabilities.ITEM as Capability<IItemHandler>
Capabilities.ITEM

Return Type: Capability<IItemHandler>