|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IHostedPeripheral
A subclass of IPeripheral specifically for peripherals created by ITurtleUpgrade's of type Peripheral. When an IHostedPeripheral is created, its IPeripheral methods will be called just as if the peripheral was a seperate adjacent block in the world, and update() will be called once per tick.
ITurtleUpgrade
Method Summary | |
---|---|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
A method called whenever data is read from the Turtle's NBTTag, over the lifetime of the turtle. |
void |
update()
A method called on each hosted peripheral once per tick, on the main thread over the lifetime of the turtle or block. |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
A method called whenever data is written to the Turtle's NBTTag, over the lifetime of the turtle. |
Methods inherited from interface dan200.computer.api.IPeripheral |
---|
attach, callMethod, canAttachToSide, detach, getMethodNames, getType |
Method Detail |
---|
void update()
void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
nbttagcompound
- The peripheral's NBTTagvoid writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
nbttagcompound
- The peripheral's NBTTag.ID
- The turtle's ID.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |