Package li.cil.oc.api.network

Examples of li.cil.oc.api.network.Node


        SimpleComponentTickHandler.schedule((TileEntity) self);
    }

    public static void invalidate(final SimpleComponentImpl self) {
        self.invalidate_OpenComputers();
        final Node node = node(self);
        if (node != null) {
            node.remove();
            nodes.remove(self);
        }
    }
View Full Code Here


        }
    }

    public static void onChunkUnload(final SimpleComponentImpl self) {
        self.onChunkUnload_OpenComputers();
        final Node node = node(self);
        if (node != null) {
            node.remove();
            nodes.remove(self);
        }
    }
View Full Code Here

        }
    }

    public static void readFromNBT(final SimpleComponentImpl self, NBTTagCompound nbt) {
        self.readFromNBT_OpenComputers(nbt);
        final Node node = node(self);
        if (node != null) {
            node.load(nbt.getCompoundTag("oc:node"));
        }
    }
View Full Code Here

        }
    }

    public static void writeToNBT(final SimpleComponentImpl self, NBTTagCompound nbt) {
        self.writeToNBT_OpenComputers(nbt);
        final Node node = node(self);
        if (node != null) {
            final NBTTagCompound nodeNbt = new NBTTagCompound();
            node.save(nodeNbt);
            nbt.setTag("oc:node", nodeNbt);
        }
    }
View Full Code Here

TOP

Related Classes of li.cil.oc.api.network.Node

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.