Added code formatter
This commit is contained in:
parent
710f9c04e7
commit
b9448d5d90
444 changed files with 32383 additions and 26254 deletions
|
@ -1,42 +1,48 @@
|
|||
package techreborn.packets;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import reborncore.common.packets.SimplePacket;
|
||||
import techreborn.tiles.TileAesu;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class PacketAesu extends SimplePacket {
|
||||
import reborncore.common.packets.SimplePacket;
|
||||
import techreborn.tiles.TileAesu;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
|
||||
public class PacketAesu extends SimplePacket
|
||||
{
|
||||
|
||||
public PacketAesu() {
|
||||
}
|
||||
public PacketAesu()
|
||||
{
|
||||
}
|
||||
|
||||
int buttonID;
|
||||
int buttonID;
|
||||
|
||||
TileAesu aesu;
|
||||
TileAesu aesu;
|
||||
|
||||
public PacketAesu(int buttonID, TileAesu aesu) {
|
||||
this.aesu = aesu;
|
||||
this.buttonID = buttonID;
|
||||
}
|
||||
public PacketAesu(int buttonID, TileAesu aesu)
|
||||
{
|
||||
this.aesu = aesu;
|
||||
this.buttonID = buttonID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeData(ByteBuf out) throws IOException {
|
||||
SimplePacket.writeTileEntity(aesu, out);
|
||||
out.writeInt(buttonID);
|
||||
}
|
||||
@Override
|
||||
public void writeData(ByteBuf out) throws IOException
|
||||
{
|
||||
SimplePacket.writeTileEntity(aesu, out);
|
||||
out.writeInt(buttonID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readData(ByteBuf in) throws IOException {
|
||||
this.aesu = (TileAesu) SimplePacket.readTileEntity(in);
|
||||
buttonID = in.readInt();
|
||||
}
|
||||
@Override
|
||||
public void readData(ByteBuf in) throws IOException
|
||||
{
|
||||
this.aesu = (TileAesu) SimplePacket.readTileEntity(in);
|
||||
buttonID = in.readInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
if (!aesu.getWorld().isRemote) {
|
||||
aesu.handleGuiInputFromClient(buttonID);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void execute()
|
||||
{
|
||||
if (!aesu.getWorld().isRemote)
|
||||
{
|
||||
aesu.handleGuiInputFromClient(buttonID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,42 +1,48 @@
|
|||
package techreborn.packets;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import reborncore.common.packets.SimplePacket;
|
||||
import techreborn.tiles.idsu.TileIDSU;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class PacketIdsu extends SimplePacket {
|
||||
import reborncore.common.packets.SimplePacket;
|
||||
import techreborn.tiles.idsu.TileIDSU;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
|
||||
public class PacketIdsu extends SimplePacket
|
||||
{
|
||||
|
||||
public PacketIdsu() {
|
||||
}
|
||||
public PacketIdsu()
|
||||
{
|
||||
}
|
||||
|
||||
int buttonID;
|
||||
int buttonID;
|
||||
|
||||
TileIDSU idsu;
|
||||
TileIDSU idsu;
|
||||
|
||||
public PacketIdsu(int buttonID, TileIDSU aesu) {
|
||||
this.idsu = aesu;
|
||||
this.buttonID = buttonID;
|
||||
}
|
||||
public PacketIdsu(int buttonID, TileIDSU aesu)
|
||||
{
|
||||
this.idsu = aesu;
|
||||
this.buttonID = buttonID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeData(ByteBuf out) throws IOException {
|
||||
SimplePacket.writeTileEntity(idsu, out);
|
||||
out.writeInt(buttonID);
|
||||
}
|
||||
@Override
|
||||
public void writeData(ByteBuf out) throws IOException
|
||||
{
|
||||
SimplePacket.writeTileEntity(idsu, out);
|
||||
out.writeInt(buttonID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readData(ByteBuf in) throws IOException {
|
||||
this.idsu = (TileIDSU) SimplePacket.readTileEntity(in);
|
||||
buttonID = in.readInt();
|
||||
}
|
||||
@Override
|
||||
public void readData(ByteBuf in) throws IOException
|
||||
{
|
||||
this.idsu = (TileIDSU) SimplePacket.readTileEntity(in);
|
||||
buttonID = in.readInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
if (!idsu.getWorld().isRemote) {
|
||||
idsu.handleGuiInputFromClient(buttonID);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void execute()
|
||||
{
|
||||
if (!idsu.getWorld().isRemote)
|
||||
{
|
||||
idsu.handleGuiInputFromClient(buttonID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue