Interface ILuaMethodProvider
- All Known Implementing Classes:
AbstractAirHandlingBlockEntity,AbstractAssemblyRobotBlockEntity,AbstractFluidTankBlockEntity,AbstractFluidTankBlockEntity.Huge,AbstractFluidTankBlockEntity.Large,AbstractFluidTankBlockEntity.Medium,AbstractFluidTankBlockEntity.Small,AbstractHopperBlockEntity,AbstractPneumaticCraftBlockEntity,AbstractTickingBlockEntity,AdvancedAirCompressorBlockEntity,AdvancedLiquidCompressorBlockEntity,AdvancedPressureTubeBlockEntity,AerialInterfaceBlockEntity,AirCannonBlockEntity,AirCompressorBlockEntity,AphorismTileBlockEntity,AssemblyControllerBlockEntity,AssemblyDrillBlockEntity,AssemblyIOUnitBlockEntity,AssemblyLaserBlockEntity,AssemblyPlatformBlockEntity,ChargingStationBlockEntity,CompressedIronBlockBlockEntity,CreativeCompressedIronBlockBlockEntity,CreativeCompressorBlockEntity,DisplayTableBlockEntity,DroneInterfaceBlockEntity,DroneRedstoneEmitterBlockEntity,ElectrostaticCompressorBlockEntity,ElevatorBaseBlockEntity,ElevatorCallerBlockEntity,ElevatorFrameBlockEntity,EtchingTankBlockEntity,FluidMixerBlockEntity,FluxCompressorBlockEntity,GasLiftBlockEntity,HeatPipeBlockEntity,HeatSinkBlockEntity,KeroseneLampBlockEntity,LiquidCompressorBlockEntity,LiquidHopperBlockEntity,OmnidirectionalHopperBlockEntity,PneumaticDoorBaseBlockEntity,PneumaticDoorBlockEntity,PneumaticDynamoBlockEntity,PressureChamberInterfaceBlockEntity,PressureChamberValveBlockEntity,PressureChamberWallBlockEntity,PressureTubeBlockEntity,PressurizedSpawnerBlockEntity,ProgrammableControllerBlockEntity,ProgrammerBlockEntity,RefineryControllerBlockEntity,RefineryOutputBlockEntity,ReinforcedChestBlockEntity,ReinforcedPressureTubeBlockEntity,SecurityStationBlockEntity,SentryTurretBlockEntity,SmartChestBlockEntity,SolarCompressorBlockEntity,SpawnerExtractorBlockEntity,TagWorkbenchBlockEntity,ThermalCompressorBlockEntity,ThermopneumaticProcessingPlantBlockEntity,TubeJunctionBlockEntity,UniversalSensorBlockEntity,UVLightBoxBlockEntity,VacuumPumpBlockEntity,VacuumTrapBlockEntity,VortexTubeBlockEntity
public interface ILuaMethodProvider
A Block Entity which makes some of its functionality available via Lua methods for calling from other mods
(e.g. ComputerCraft)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLuaMethods(LuaMethodRegistry registry) Called lazily to populate the method registry with the methods.Get this BE's method registry object.Get a unique identifier for this type of method provider.
-
Method Details
-
getLuaMethodRegistry
LuaMethodRegistry getLuaMethodRegistry()Get this BE's method registry object. This should be created in the BE constructor, but not populated with methods yet.- Returns:
- the method registry
-
getPeripheralType
String getPeripheralType()Get a unique identifier for this type of method provider. The BE's type (a registry ID) is a good choice.- Returns:
- a unique string identifier
-
addLuaMethods
Called lazily to populate the method registry with the methods.- Parameters:
registry- the registry to populate
-