Class SyncedPeripheral<T extends SmartBlockEntity>
java.lang.Object
com.simibubi.create.compat.computercraft.implementation.peripherals.SyncedPeripheral<T>
- All Implemented Interfaces:
dan200.computercraft.api.peripheral.IPeripheral
- Direct Known Subclasses:
CreativeMotorPeripheral,DisplayLinkPeripheral,FrogportPeripheral,NixieTubePeripheral,PackagerPeripheral,PostboxPeripheral,RedstoneRequesterPeripheral,RepackagerPeripheral,SequencedGearshiftPeripheral,SignalPeripheral,SpeedControllerPeripheral,SpeedGaugePeripheral,StationPeripheral,StickerPeripheral,StockTickerPeripheral,StressGaugePeripheral,TableClothShopPeripheral,TrackObserverPeripheral
public abstract class SyncedPeripheral<T extends SmartBlockEntity>
extends Object
implements dan200.computercraft.api.peripheral.IPeripheral
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(@NotNull dan200.computercraft.api.peripheral.IComputerAccess computer) voiddetach(@NotNull dan200.computercraft.api.peripheral.IComputerAccess computer) booleanequals(@Nullable dan200.computercraft.api.peripheral.IPeripheral other) protected voidprotected voidvoidprepareComputerEvent(@NotNull ComputerEvent event) protected voidqueueEvent(@NotNull String event, @Nullable Object... arguments) Queue an event to all attached computers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dan200.computercraft.api.peripheral.IPeripheral
getAdditionalTypes, getTarget, getType
-
Field Details
-
blockEntity
-
-
Constructor Details
-
SyncedPeripheral
-
-
Method Details
-
attach
public void attach(@NotNull @NotNull dan200.computercraft.api.peripheral.IComputerAccess computer) - Specified by:
attachin interfacedan200.computercraft.api.peripheral.IPeripheral
-
onFirstAttach
protected void onFirstAttach() -
detach
public void detach(@NotNull @NotNull dan200.computercraft.api.peripheral.IComputerAccess computer) - Specified by:
detachin interfacedan200.computercraft.api.peripheral.IPeripheral
-
onLastDetach
protected void onLastDetach() -
equals
public boolean equals(@Nullable @Nullable dan200.computercraft.api.peripheral.IPeripheral other) - Specified by:
equalsin interfacedan200.computercraft.api.peripheral.IPeripheral
-
prepareComputerEvent
-
queueEvent
Queue an event to all attached computers. Adds the peripheral attachment name as 1st event argument, followed by any optional arguments passed to this method.
-