diff --git a/archaic/src/main/scala/resonantinduction/archaic/fluid/gutter/TileGutter.java b/archaic/src/main/scala/resonantinduction/archaic/fluid/gutter/TileGutter.java index c383d0ea6..a92aa547f 100644 --- a/archaic/src/main/scala/resonantinduction/archaic/fluid/gutter/TileGutter.java +++ b/archaic/src/main/scala/resonantinduction/archaic/fluid/gutter/TileGutter.java @@ -74,7 +74,7 @@ public class TileGutter extends TilePressureNode { if (tile instanceof IPressureNodeProvider) { - FluidPressureNode check = ((IPressureNodeProvider) tile).getNode(FluidPressureNode.class, dir.getOpposite()); + FluidPressureNode check = (FluidPressureNode) ((IPressureNodeProvider) tile).getNode(FluidPressureNode.class, dir.getOpposite()); if (check != null && canConnect(dir, check) && check.canConnect(dir.getOpposite(), this)) { diff --git a/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java b/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java index 9bc102be9..1d77bbdf6 100644 --- a/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java +++ b/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java @@ -163,12 +163,12 @@ public class TileMotor extends TileElectrical implements IRotatable, INodeProvid } @Override - public N getNode(Class nodeType, ForgeDirection from) + public INode getNode(Class nodeType, ForgeDirection from) { if (from == getDirection() || from == getDirection().getOpposite()) { if (nodeType.isAssignableFrom(node.getClass())) - return (N) node; + return node; } return null; diff --git a/electrical/src/main/scala/resonantinduction/electrical/itemrailing/PartRailing.java b/electrical/src/main/scala/resonantinduction/electrical/itemrailing/PartRailing.java index 5b71961dd..69f8512da 100644 --- a/electrical/src/main/scala/resonantinduction/electrical/itemrailing/PartRailing.java +++ b/electrical/src/main/scala/resonantinduction/electrical/itemrailing/PartRailing.java @@ -44,10 +44,10 @@ public class PartRailing extends PartFramedConnection N getNode (Class nodeType, ForgeDirection from) + public INode getNode(Class nodeType, ForgeDirection from) { if (nodeType.isInstance(this.node)) - return (N) node; + return node; try { for (Constructor con : nodeType.getConstructors()) @@ -55,7 +55,7 @@ public class PartRailing extends PartFramedConnection N getNode(Class nodeType, ForgeDirection from) + public INode getNode(Class nodeType, ForgeDirection from) { if (nodeType.isAssignableFrom(node.getClass())) - return (N) getMultiBlock().get().node; + return getMultiBlock().get().node; return null; } diff --git a/mechanical/src/main/scala/resonantinduction/mechanical/energy/gearshaft/GearShaftNode.java b/mechanical/src/main/scala/resonantinduction/mechanical/energy/gearshaft/GearShaftNode.java index 43294cc56..6f08bd05d 100644 --- a/mechanical/src/main/scala/resonantinduction/mechanical/energy/gearshaft/GearShaftNode.java +++ b/mechanical/src/main/scala/resonantinduction/mechanical/energy/gearshaft/GearShaftNode.java @@ -56,7 +56,7 @@ public class GearShaftNode extends MechanicalNode { if (shaft().tile() instanceof INodeProvider) { - MechanicalNode instance = ((INodeProvider) shaft().tile()).getNode(MechanicalNode.class, checkDir); + MechanicalNode instance = (MechanicalNode) ((INodeProvider) shaft().tile()).getNode(MechanicalNode.class, checkDir); if (instance != null && instance != this && instance.canConnect(checkDir.getOpposite(), this)) { @@ -77,7 +77,7 @@ public class GearShaftNode extends MechanicalNode if (checkTile instanceof INodeProvider) { - MechanicalNode instance = ((INodeProvider) checkTile).getNode(MechanicalNode.class, checkDir.getOpposite()); + MechanicalNode instance = (MechanicalNode) ((INodeProvider) checkTile).getNode(MechanicalNode.class, checkDir.getOpposite()); // Only connect to shafts outside of this block space. if (instance != null && instance != this && instance.parent instanceof PartGearShaft && instance.canConnect(checkDir.getOpposite(), this)) diff --git a/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/MechanicalNode.java b/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/MechanicalNode.java index 031352014..c6c0c643e 100644 --- a/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/MechanicalNode.java +++ b/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/MechanicalNode.java @@ -244,7 +244,7 @@ public class MechanicalNode extends Node N getNode(Class nodeType, ForgeDirection from) + public INode getNode(Class nodeType, ForgeDirection from) { if (nodeType.isAssignableFrom(node.getClass())) - return (N) node; + return node; return null; } diff --git a/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/TileMechanical.java b/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/TileMechanical.java index c62c82582..054cd9ec0 100644 --- a/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/TileMechanical.java +++ b/mechanical/src/main/scala/resonantinduction/mechanical/energy/grid/TileMechanical.java @@ -82,10 +82,10 @@ public abstract class TileMechanical extends TileBase implements INodeProvider, } @Override - public N getNode(Class nodeType, ForgeDirection from) + public INode getNode(Class nodeType, ForgeDirection from) { if (nodeType.isAssignableFrom(mechanicalNode.getClass())) - return (N) mechanicalNode; + return mechanicalNode; return null; } diff --git a/mechanical/src/main/scala/resonantinduction/mechanical/energy/turbine/TileMechanicalTurbine.java b/mechanical/src/main/scala/resonantinduction/mechanical/energy/turbine/TileMechanicalTurbine.java index 65029fde1..9343b01e3 100644 --- a/mechanical/src/main/scala/resonantinduction/mechanical/energy/turbine/TileMechanicalTurbine.java +++ b/mechanical/src/main/scala/resonantinduction/mechanical/energy/turbine/TileMechanicalTurbine.java @@ -40,7 +40,7 @@ public class TileMechanicalTurbine extends TileTurbineBase implements INodeProvi if (sourceTile instanceof INodeProvider) { - MechanicalNode sourceInstance = ((INodeProvider) sourceTile).getNode(MechanicalNode.class, from.getOpposite()); + MechanicalNode sourceInstance = (MechanicalNode) ((INodeProvider) sourceTile).getNode(MechanicalNode.class, from.getOpposite()); return sourceInstance == source && from == getDirection().getOpposite(); } } @@ -121,10 +121,10 @@ public class TileMechanicalTurbine extends TileTurbineBase implements INodeProvi } @Override - public N getNode(Class nodeType, ForgeDirection from) + public INode getNode(Class nodeType, ForgeDirection from) { if (nodeType.isAssignableFrom(mechanicalNode.getClass())) - return (N) ((TileMechanicalTurbine) getMultiBlock().get()).mechanicalNode; + return ((TileMechanicalTurbine) getMultiBlock().get()).mechanicalNode; return null; } diff --git a/mechanical/src/main/scala/resonantinduction/mechanical/energy/turbine/TileWaterTurbine.java b/mechanical/src/main/scala/resonantinduction/mechanical/energy/turbine/TileWaterTurbine.java index 746760aeb..d3221614d 100644 --- a/mechanical/src/main/scala/resonantinduction/mechanical/energy/turbine/TileWaterTurbine.java +++ b/mechanical/src/main/scala/resonantinduction/mechanical/energy/turbine/TileWaterTurbine.java @@ -42,7 +42,7 @@ public class TileWaterTurbine extends TileMechanicalTurbine if (sourceTile instanceof INodeProvider) { - MechanicalNode sourceInstance = ((INodeProvider) sourceTile).getNode(MechanicalNode.class, from.getOpposite()); + MechanicalNode sourceInstance = (MechanicalNode) ((INodeProvider) sourceTile).getNode(MechanicalNode.class, from.getOpposite()); return sourceInstance == source && (from == getDirection().getOpposite() || from == getDirection()); } } diff --git a/mechanical/src/main/scala/resonantinduction/mechanical/fluid/pipe/PartPipe.java b/mechanical/src/main/scala/resonantinduction/mechanical/fluid/pipe/PartPipe.java index 3751885d2..ac0954f1c 100644 --- a/mechanical/src/main/scala/resonantinduction/mechanical/fluid/pipe/PartPipe.java +++ b/mechanical/src/main/scala/resonantinduction/mechanical/fluid/pipe/PartPipe.java @@ -49,7 +49,6 @@ public class PartPipe extends PartFramedNode N getNode(Class nodeType, ForgeDirection from) + public INode getNode(Class nodeType, ForgeDirection from) { if (nodeType.isAssignableFrom(pressureNode.getClass())) - return (N) pressureNode; + return pressureNode; return super.getNode(nodeType, from); } diff --git a/src/main/scala/resonantinduction/core/grid/TraitNodeProvider.java b/src/main/scala/resonantinduction/core/grid/TraitNodeProvider.java index 2b436477e..a777c5908 100644 --- a/src/main/scala/resonantinduction/core/grid/TraitNodeProvider.java +++ b/src/main/scala/resonantinduction/core/grid/TraitNodeProvider.java @@ -11,7 +11,7 @@ import codechicken.multipart.TileMultipart; public class TraitNodeProvider extends TileMultipart implements INodeProvider { @Override - public N getNode(Class nodeType, ForgeDirection from) + public INode getNode(Class nodeType, ForgeDirection from) { TMultiPart part = this.partMap(from.ordinal()); diff --git a/src/main/scala/resonantinduction/core/grid/fluid/FluidPressureNode.java b/src/main/scala/resonantinduction/core/grid/fluid/FluidPressureNode.java index 6ae369704..f49db3dae 100644 --- a/src/main/scala/resonantinduction/core/grid/fluid/FluidPressureNode.java +++ b/src/main/scala/resonantinduction/core/grid/fluid/FluidPressureNode.java @@ -156,7 +156,7 @@ public class FluidPressureNode extends Node N getNode(Class nodeType, ForgeDirection from) + public INode getNode(Class nodeType, ForgeDirection from) { if (nodeType.isAssignableFrom(node.getClass())) - return (N) node; + return node; return null; } } diff --git a/src/main/scala/resonantinduction/core/prefab/part/PartFramedNode.java b/src/main/scala/resonantinduction/core/prefab/part/PartFramedNode.java index d625b681c..a9fbd9248 100644 --- a/src/main/scala/resonantinduction/core/prefab/part/PartFramedNode.java +++ b/src/main/scala/resonantinduction/core/prefab/part/PartFramedNode.java @@ -38,273 +38,274 @@ import cpw.mods.fml.relauncher.SideOnly; public abstract class PartFramedNode extends PartColorableMaterial implements INodeProvider, TSlottedPart, JNormalOcclusion, IHollowConnect, JIconHitEffects { - public static IndexedCuboid6[] sides = new IndexedCuboid6[7]; - public static IndexedCuboid6[] insulatedSides = new IndexedCuboid6[7]; + public static IndexedCuboid6[] sides = new IndexedCuboid6[7]; + public static IndexedCuboid6[] insulatedSides = new IndexedCuboid6[7]; - static - { - sides[0] = new IndexedCuboid6(0, new Cuboid6(0.36, 0.000, 0.36, 0.64, 0.36, 0.64)); - sides[1] = new IndexedCuboid6(1, new Cuboid6(0.36, 0.64, 0.36, 0.64, 1.000, 0.64)); - sides[2] = new IndexedCuboid6(2, new Cuboid6(0.36, 0.36, 0.000, 0.64, 0.64, 0.36)); - sides[3] = new IndexedCuboid6(3, new Cuboid6(0.36, 0.36, 0.64, 0.64, 0.64, 1.000)); - sides[4] = new IndexedCuboid6(4, new Cuboid6(0.000, 0.36, 0.36, 0.36, 0.64, 0.64)); - sides[5] = new IndexedCuboid6(5, new Cuboid6(0.64, 0.36, 0.36, 1.000, 0.64, 0.64)); - sides[6] = new IndexedCuboid6(6, new Cuboid6(0.36, 0.36, 0.36, 0.64, 0.64, 0.64)); - insulatedSides[0] = new IndexedCuboid6(0, new Cuboid6(0.3, 0.0, 0.3, 0.7, 0.3, 0.7)); - insulatedSides[1] = new IndexedCuboid6(1, new Cuboid6(0.3, 0.7, 0.3, 0.7, 1.0, 0.7)); - insulatedSides[2] = new IndexedCuboid6(2, new Cuboid6(0.3, 0.3, 0.0, 0.7, 0.7, 0.3)); - insulatedSides[3] = new IndexedCuboid6(3, new Cuboid6(0.3, 0.3, 0.7, 0.7, 0.7, 1.0)); - insulatedSides[4] = new IndexedCuboid6(4, new Cuboid6(0.0, 0.3, 0.3, 0.3, 0.7, 0.7)); - insulatedSides[5] = new IndexedCuboid6(5, new Cuboid6(0.7, 0.3, 0.3, 1.0, 0.7, 0.7)); - insulatedSides[6] = new IndexedCuboid6(6, new Cuboid6(0.3, 0.3, 0.3, 0.7, 0.7, 0.7)); - } + static + { + sides[0] = new IndexedCuboid6(0, new Cuboid6(0.36, 0.000, 0.36, 0.64, 0.36, 0.64)); + sides[1] = new IndexedCuboid6(1, new Cuboid6(0.36, 0.64, 0.36, 0.64, 1.000, 0.64)); + sides[2] = new IndexedCuboid6(2, new Cuboid6(0.36, 0.36, 0.000, 0.64, 0.64, 0.36)); + sides[3] = new IndexedCuboid6(3, new Cuboid6(0.36, 0.36, 0.64, 0.64, 0.64, 1.000)); + sides[4] = new IndexedCuboid6(4, new Cuboid6(0.000, 0.36, 0.36, 0.36, 0.64, 0.64)); + sides[5] = new IndexedCuboid6(5, new Cuboid6(0.64, 0.36, 0.36, 1.000, 0.64, 0.64)); + sides[6] = new IndexedCuboid6(6, new Cuboid6(0.36, 0.36, 0.36, 0.64, 0.64, 0.64)); + insulatedSides[0] = new IndexedCuboid6(0, new Cuboid6(0.3, 0.0, 0.3, 0.7, 0.3, 0.7)); + insulatedSides[1] = new IndexedCuboid6(1, new Cuboid6(0.3, 0.7, 0.3, 0.7, 1.0, 0.7)); + insulatedSides[2] = new IndexedCuboid6(2, new Cuboid6(0.3, 0.3, 0.0, 0.7, 0.7, 0.3)); + insulatedSides[3] = new IndexedCuboid6(3, new Cuboid6(0.3, 0.3, 0.7, 0.7, 0.7, 1.0)); + insulatedSides[4] = new IndexedCuboid6(4, new Cuboid6(0.0, 0.3, 0.3, 0.3, 0.7, 0.7)); + insulatedSides[5] = new IndexedCuboid6(5, new Cuboid6(0.7, 0.3, 0.3, 1.0, 0.7, 0.7)); + insulatedSides[6] = new IndexedCuboid6(6, new Cuboid6(0.3, 0.3, 0.3, 0.7, 0.7, 0.7)); + } - protected Object[] connections = new Object[6]; + protected Object[] connections = new Object[6]; - protected N node; + protected N node; - /** - * Bitmask connections - */ - public byte currentConnections = 0x00; + /** Bitmask connections */ + public byte currentConnections = 0x00; - /** Client Side */ - private ForgeDirection testingSide; + /** Client Side */ + private ForgeDirection testingSide; - @SideOnly(Side.CLIENT) - protected Icon breakIcon; + @SideOnly(Side.CLIENT) + protected Icon breakIcon; - public PartFramedNode(Item insulationType) - { - super(insulationType); - } + public PartFramedNode(Item insulationType) + { + super(insulationType); + } - public void preparePlacement(int meta) - { - this.setMaterial(meta); - } + public void preparePlacement(int meta) + { + this.setMaterial(meta); + } - @Override - public boolean occlusionTest(TMultiPart other) - { - return NormalOcclusionTest.apply(this, other); - } + @Override + public boolean occlusionTest(TMultiPart other) + { + return NormalOcclusionTest.apply(this, other); + } - @Override - public Iterable getSubParts() - { - Set subParts = new HashSet(); - IndexedCuboid6[] currentSides = isInsulated() ? insulatedSides : sides; + @Override + public Iterable getSubParts() + { + Set subParts = new HashSet(); + IndexedCuboid6[] currentSides = isInsulated() ? insulatedSides : sides; - if (tile() != null) - { - for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) - { - int ord = side.ordinal(); - if (connectionMapContainsSide(getAllCurrentConnections(), side) || side == testingSide) - subParts.add(currentSides[ord]); - } - } + if (tile() != null) + { + for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) + { + int ord = side.ordinal(); + if (connectionMapContainsSide(getAllCurrentConnections(), side) || side == testingSide) + subParts.add(currentSides[ord]); + } + } - subParts.add(currentSides[6]); - return subParts; - } + subParts.add(currentSides[6]); + return subParts; + } - /** - * Rendering and block bounds. - */ - @Override - public Iterable getCollisionBoxes() - { - Set collisionBoxes = new HashSet(); - collisionBoxes.addAll((Collection) getSubParts()); + /** Rendering and block bounds. */ + @Override + public Iterable getCollisionBoxes() + { + Set collisionBoxes = new HashSet(); + collisionBoxes.addAll((Collection) getSubParts()); - return collisionBoxes; - } + return collisionBoxes; + } - @Override - public float getStrength(MovingObjectPosition hit, EntityPlayer player) - { - return 10F; - } + @Override + public float getStrength(MovingObjectPosition hit, EntityPlayer player) + { + return 10F; + } - @Override - public void drawBreaking(RenderBlocks renderBlocks) - { - if (breakIcon != null) - { - CCRenderState.reset(); - RenderUtils.renderBlock(sides[6], 0, new Translation(x(), y(), z()), new IconTransformation(breakIcon), null); - } - } + @Override + public void drawBreaking(RenderBlocks renderBlocks) + { + if (breakIcon != null) + { + CCRenderState.reset(); + RenderUtils.renderBlock(sides[6], 0, new Translation(x(), y(), z()), new IconTransformation(breakIcon), null); + } + } - @Override - public Cuboid6 getBounds() - { - return new Cuboid6(0.375, 0.375, 0.375, 0.625, 0.625, 0.625); - } + @Override + public Cuboid6 getBounds() + { + return new Cuboid6(0.375, 0.375, 0.375, 0.625, 0.625, 0.625); + } - @Override - public Icon getBreakingIcon(Object subPart, int side) - { - return breakIcon; - } + @Override + public Icon getBreakingIcon(Object subPart, int side) + { + return breakIcon; + } - @Override - public Icon getBrokenIcon(int side) - { - return breakIcon; - } + @Override + public Icon getBrokenIcon(int side) + { + return breakIcon; + } - @Override - public Iterable getOcclusionBoxes() - { - return getCollisionBoxes(); - } + @Override + public Iterable getOcclusionBoxes() + { + return getCollisionBoxes(); + } - @Override - public int getSlotMask() - { - return PartMap.CENTER.mask; - } + @Override + public int getSlotMask() + { + return PartMap.CENTER.mask; + } - @Override - public int getHollowSize() - { - return isInsulated ? 8 : 6; - } + @Override + public int getHollowSize() + { + return isInsulated ? 8 : 6; + } - @Override - public void addHitEffects(MovingObjectPosition hit, EffectRenderer effectRenderer) - { - IconHitEffects.addHitEffects(this, hit, effectRenderer); - } + @Override + public void addHitEffects(MovingObjectPosition hit, EffectRenderer effectRenderer) + { + IconHitEffects.addHitEffects(this, hit, effectRenderer); + } - @Override - public void addDestroyEffects(EffectRenderer effectRenderer) - { - IconHitEffects.addDestroyEffects(this, effectRenderer, false); - } + @Override + public void addDestroyEffects(EffectRenderer effectRenderer) + { + IconHitEffects.addDestroyEffects(this, effectRenderer, false); + } - public boolean isBlockedOnSide(ForgeDirection side) - { - TMultiPart blocker = tile().partMap(side.ordinal()); - testingSide = side; - boolean expandable = NormalOcclusionTest.apply(this, blocker); - testingSide = null; - return !expandable; - } + public boolean isBlockedOnSide(ForgeDirection side) + { + TMultiPart blocker = tile().partMap(side.ordinal()); + testingSide = side; + boolean expandable = NormalOcclusionTest.apply(this, blocker); + testingSide = null; + return !expandable; + } - public byte getAllCurrentConnections() - { - return (currentConnections); - } + public byte getAllCurrentConnections() + { + return (currentConnections); + } - public static boolean connectionMapContainsSide(byte connections, ForgeDirection side) - { - byte tester = (byte) (1 << side.ordinal()); - return ((connections & tester) > 0); - } + public static boolean connectionMapContainsSide(byte connections, ForgeDirection side) + { + byte tester = (byte) (1 << side.ordinal()); + return ((connections & tester) > 0); + } - @Override - public void bind(TileMultipart t) - { - node.deconstruct(); - super.bind(t); - node.reconstruct(); - } + @Override + public void bind(TileMultipart t) + { + node.deconstruct(); + super.bind(t); + node.reconstruct(); + } - public boolean isCurrentlyConnected(ForgeDirection side) - { - return connectionMapContainsSide(getAllCurrentConnections(), side); - } + public boolean isCurrentlyConnected(ForgeDirection side) + { + return connectionMapContainsSide(getAllCurrentConnections(), side); + } - @Override - public void onWorldJoin() - { - node.reconstruct(); - } + @Override + public void onWorldJoin() + { + node.reconstruct(); + } - @Override - public void onNeighborChanged() - { - node.reconstruct(); - } + @Override + public void onNeighborChanged() + { + node.reconstruct(); + } - @Override - public void onWorldSeparate() - { - node.deconstruct(); - } + @Override + public void onWorldSeparate() + { + node.deconstruct(); + } - public void copyFrom(PartFramedNode other) - { - this.isInsulated = other.isInsulated; - this.color = other.color; - this.connections = other.connections; - this.material = other.material; - } + public void copyFrom(PartFramedNode other) + { + this.isInsulated = other.isInsulated; + this.color = other.color; + this.connections = other.connections; + this.material = other.material; + } - /** Packet Methods */ - public void sendConnectionUpdate() - { - tile().getWriteStream(this).writeByte(0).writeByte(currentConnections); - } + /** Packet Methods */ + public void sendConnectionUpdate() + { + tile().getWriteStream(this).writeByte(0).writeByte(currentConnections); + } - @Override - public void readDesc(MCDataInput packet) - { - super.readDesc(packet); - currentConnections = packet.readByte(); - } + @Override + public void readDesc(MCDataInput packet) + { + super.readDesc(packet); + currentConnections = packet.readByte(); + } - @Override - public void writeDesc(MCDataOutput packet) - { - super.writeDesc(packet); - packet.writeByte(currentConnections); - } + @Override + public void writeDesc(MCDataOutput packet) + { + super.writeDesc(packet); + packet.writeByte(currentConnections); + } - @Override - public void read(MCDataInput packet) - { - read(packet, packet.readUByte()); - } + @Override + public void read(MCDataInput packet) + { + read(packet, packet.readUByte()); + } - @Override - public void read(MCDataInput packet, int packetID) - { - if (packetID == 0) - { - currentConnections = packet.readByte(); - tile().markRender(); - } - else - { - super.read(packet, packetID); - } - } + @Override + public void read(MCDataInput packet, int packetID) + { + if (packetID == 0) + { + currentConnections = packet.readByte(); + tile().markRender(); + } + else + { + super.read(packet, packetID); + } + } - @SuppressWarnings("hiding") - @Override - public N getNode(Class nodeType, ForgeDirection from) - { - if (nodeType.isAssignableFrom(node.getClass())) - return (N) node; - return null; - } + @SuppressWarnings("hiding") + @Override + public INode getNode(Class nodeType, ForgeDirection from) + { + if (node != null && nodeType != null) + { + if (nodeType.isAssignableFrom(node.getClass())) + { + return (N) node; + } + } + return null; + } - @Override - public void save(NBTTagCompound nbt) - { - super.save(nbt); - node.save(nbt); - } + @Override + public void save(NBTTagCompound nbt) + { + super.save(nbt); + node.save(nbt); + } - @Override - public void load(NBTTagCompound nbt) - { - super.load(nbt); - node.load(nbt); - } + @Override + public void load(NBTTagCompound nbt) + { + super.load(nbt); + node.load(nbt); + } } \ No newline at end of file