You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
Java
36 lines
1.2 KiB
Java
package net.brokenmoon.afloydwiremod.tileentity;
|
|
|
|
import net.brokenmoon.afloydwiremod.api.AbstractWireTileEntity;
|
|
import net.brokenmoon.afloydwiremod.gui.WiringButton;
|
|
import net.minecraft.src.NBTTagCompound;
|
|
|
|
public class DisplayTileEntity extends AbstractWireTileEntity {
|
|
public boolean[] isLineReversed = new boolean[4];
|
|
public DisplayTileEntity(){
|
|
super();
|
|
inputs = new WiringButton[4];
|
|
inputs[0] = new WiringButton(214, 220, "Line 1", 0);
|
|
inputs[1] = new WiringButton(214, 220, "Line 2", 1);
|
|
inputs[2] = new WiringButton(214, 220, "Line 3", 2);
|
|
inputs[3] = new WiringButton(214, 220, "Line 4", 3);
|
|
outputs = new WiringButton[0];
|
|
this.initialized = true;
|
|
}
|
|
|
|
@Override
|
|
public void readFromNBT(NBTTagCompound nbttagcompound) {
|
|
super.readFromNBT(nbttagcompound);
|
|
for(int i = 0; i < isLineReversed.length; i++){
|
|
isLineReversed[i] = nbttagcompound.getBoolean("reverse" + i);
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public void writeToNBT(NBTTagCompound nbttagcompound) {
|
|
super.writeToNBT(nbttagcompound);
|
|
for(int i = 0; i < isLineReversed.length; i++){
|
|
nbttagcompound.setBoolean("reverse" + i, isLineReversed[i]);
|
|
}
|
|
}
|
|
}
|