Files
CustomNPC-Plus/src/main/java/noppes/npcs/blocks/tiles/TileCouchWool.java
T
2023-01-12 21:33:06 -05:00

29 lines
926 B
Java

package noppes.npcs.blocks.tiles;
import net.minecraft.nbt.NBTTagCompound;
public class TileCouchWool extends TileColorable {
public boolean hasLeft = false;
public boolean hasRight = false;
public boolean hasCornerLeft = false;
public boolean hasCornerRight = false;
public void readFromNBT(NBTTagCompound compound){
super.readFromNBT(compound);
hasLeft = compound.getBoolean("CouchLeft");
hasRight = compound.getBoolean("CouchRight");
hasCornerLeft = compound.getBoolean("CouchCornerLeft");
hasCornerRight = compound.getBoolean("CouchCornerRight");
}
public void writeToNBT(NBTTagCompound compound){
super.writeToNBT(compound);
compound.setBoolean("CouchLeft", hasLeft);
compound.setBoolean("CouchRight", hasRight);
compound.setBoolean("CouchCornerLeft", hasCornerLeft);
compound.setBoolean("CouchCornerRight", hasCornerRight);
}
}