Class PneumaticTilePeripheral

java.lang.Object
me.desht.pneumaticcraft.common.thirdparty.computercraft.PneumaticTilePeripheral
All Implemented Interfaces:
dan200.computercraft.api.peripheral.IDynamicPeripheral, dan200.computercraft.api.peripheral.IPeripheral, ComputerEventManager.IComputerEventSender

public class PneumaticTilePeripheral extends Object implements dan200.computercraft.api.peripheral.IDynamicPeripheral, ComputerEventManager.IComputerEventSender
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraftforge.common.capabilities.Capability<dan200.computercraft.api.peripheral.IPeripheral>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    attach(dan200.computercraft.api.peripheral.IComputerAccess computer)
     
    dan200.computercraft.api.lua.MethodResult
    callMethod(dan200.computercraft.api.peripheral.IComputerAccess computer, dan200.computercraft.api.lua.ILuaContext ctx, int method, dan200.computercraft.api.lua.IArguments args)
     
    void
    detach(dan200.computercraft.api.peripheral.IComputerAccess computer)
     
    boolean
    equals(dan200.computercraft.api.peripheral.IPeripheral other)
     
     
     
     
    void
    sendEvent(net.minecraft.world.level.block.entity.BlockEntity te, String name, Object... params)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface dan200.computercraft.api.peripheral.IPeripheral

    getAdditionalTypes
  • Field Details

    • PERIPHERAL_CAPABILITY

      public static final net.minecraftforge.common.capabilities.Capability<dan200.computercraft.api.peripheral.IPeripheral> PERIPHERAL_CAPABILITY
  • Method Details

    • getMethodNames

      @Nonnull public String[] getMethodNames()
      Specified by:
      getMethodNames in interface dan200.computercraft.api.peripheral.IDynamicPeripheral
    • callMethod

      @Nonnull public dan200.computercraft.api.lua.MethodResult callMethod(@Nonnull dan200.computercraft.api.peripheral.IComputerAccess computer, @Nonnull dan200.computercraft.api.lua.ILuaContext ctx, int method, @Nonnull dan200.computercraft.api.lua.IArguments args) throws dan200.computercraft.api.lua.LuaException
      Specified by:
      callMethod in interface dan200.computercraft.api.peripheral.IDynamicPeripheral
      Throws:
      dan200.computercraft.api.lua.LuaException
    • getType

      @Nonnull public String getType()
      Specified by:
      getType in interface dan200.computercraft.api.peripheral.IPeripheral
    • equals

      public boolean equals(@Nullable dan200.computercraft.api.peripheral.IPeripheral other)
      Specified by:
      equals in interface dan200.computercraft.api.peripheral.IPeripheral
    • attach

      public void attach(@Nonnull dan200.computercraft.api.peripheral.IComputerAccess computer)
      Specified by:
      attach in interface dan200.computercraft.api.peripheral.IPeripheral
    • detach

      public void detach(@Nonnull dan200.computercraft.api.peripheral.IComputerAccess computer)
      Specified by:
      detach in interface dan200.computercraft.api.peripheral.IPeripheral
    • sendEvent

      public void sendEvent(net.minecraft.world.level.block.entity.BlockEntity te, String name, Object... params)
      Specified by:
      sendEvent in interface ComputerEventManager.IComputerEventSender
    • getTarget

      public Object getTarget()
      Specified by:
      getTarget in interface dan200.computercraft.api.peripheral.IPeripheral