Packet handler change
This commit is contained in:
parent
1e70387ac6
commit
0afe037f51
9 changed files with 12 additions and 12 deletions
|
@ -274,7 +274,7 @@ public class TileEntityArmbot extends TileEntityAssembly implements IMultiBlock,
|
|||
@Override
|
||||
public Packet getDescriptionPacket()
|
||||
{
|
||||
return PacketHandler.instance().getPacket(this.getChannel(), this, "armbot", this.functioning, this.rotationYaw, this.rotationPitch);
|
||||
return PacketHandler.instance().getTilePacket(this.getChannel(), this, "armbot", this.functioning, this.rotationYaw, this.rotationPitch);
|
||||
}
|
||||
|
||||
public void sendRotationPacket()
|
||||
|
|
|
@ -473,7 +473,7 @@ public class TileEntityImprinter extends TileEntityAdvanced implements ISidedInv
|
|||
@Override
|
||||
public Packet getDescriptionPacket()
|
||||
{
|
||||
return PacketHandler.instance().getPacket(DarkMain.CHANNEL, this, this.searchInventories);
|
||||
return PacketHandler.instance().getTilePacket(DarkMain.CHANNEL, this, this.searchInventories);
|
||||
}
|
||||
|
||||
// ///////////////////////////////////////
|
||||
|
|
|
@ -225,11 +225,11 @@ public class TileEntityCrate extends TileEntityInv implements IPacketReceiver, I
|
|||
ItemStack stack = this.getSampleStack();
|
||||
if (stack != null)
|
||||
{
|
||||
return PacketHandler.instance().getPacket(DarkMain.CHANNEL, this, true, stack.writeToNBT(new NBTTagCompound()), stack.stackSize);
|
||||
return PacketHandler.instance().getTilePacket(DarkMain.CHANNEL, this, true, stack.writeToNBT(new NBTTagCompound()), stack.stackSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
return PacketHandler.instance().getPacket(DarkMain.CHANNEL, this, false);
|
||||
return PacketHandler.instance().getTilePacket(DarkMain.CHANNEL, this, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ public class TileEntityDetector extends TileEntityFilterable
|
|||
@Override
|
||||
public Packet getDescriptionPacket()
|
||||
{
|
||||
return PacketHandler.instance().getPacket(this.getChannel(), this, "detector", this.functioning, this.isInverted());
|
||||
return PacketHandler.instance().getTilePacket(this.getChannel(), this, "detector", this.functioning, this.isInverted());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -186,7 +186,7 @@ public class TileEntityManipulator extends TileEntityFilterable implements IRota
|
|||
@Override
|
||||
public Packet getDescriptionPacket()
|
||||
{
|
||||
return PacketHandler.instance().getPacket(this.getChannel(), this, "manipulator", this.functioning, this.isInverted(), this.isSelfPulse(), this.isOutput());
|
||||
return PacketHandler.instance().getTilePacket(this.getChannel(), this, "manipulator", this.functioning, this.isInverted(), this.isSelfPulse(), this.isOutput());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -108,7 +108,7 @@ public class TileEntityRejector extends TileEntityFilterable
|
|||
@Override
|
||||
public Packet getDescriptionPacket()
|
||||
{
|
||||
return PacketHandler.instance().getPacket(this.getChannel(), this, "rejector", this.functioning, this.isInverted(), this.firePiston);
|
||||
return PacketHandler.instance().getTilePacket(this.getChannel(), this, "rejector", this.functioning, this.isInverted(), this.firePiston);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -115,7 +115,7 @@ public class TileEntityConveyorBelt extends TileEntityAssembly implements IBelt,
|
|||
{
|
||||
if (this.slantType != SlantType.NONE)
|
||||
{
|
||||
return PacketHandler.instance().getPacket(this.getChannel(), this, slantPacketID, this.slantType.ordinal());
|
||||
return PacketHandler.instance().getTilePacket(this.getChannel(), this, slantPacketID, this.slantType.ordinal());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -154,7 +154,7 @@ public class TileEntityEncoder extends TileEntityMachine implements ISidedInvent
|
|||
{
|
||||
this.program.save(tag);
|
||||
}
|
||||
PacketDispatcher.sendPacketToPlayer(PacketHandler.instance().getPacket(DarkMain.CHANNEL, this, this.program, exists, tag), (Player) entity);
|
||||
PacketDispatcher.sendPacketToPlayer(PacketHandler.instance().getTilePacket(DarkMain.CHANNEL, this, this.program, exists, tag), (Player) entity);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -162,7 +162,7 @@ public class TileEntityEncoder extends TileEntityMachine implements ISidedInvent
|
|||
{
|
||||
if (vec != null)
|
||||
{
|
||||
PacketDispatcher.sendPacketToServer(PacketHandler.instance().getPacket(DarkMain.CHANNEL, this, vec.intX(), vec.intY()));
|
||||
PacketDispatcher.sendPacketToServer(PacketHandler.instance().getTilePacket(DarkMain.CHANNEL, this, vec.intX(), vec.intY()));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@ public class TileEntityEncoder extends TileEntityMachine implements ISidedInvent
|
|||
{
|
||||
if (task != null)
|
||||
{
|
||||
PacketDispatcher.sendPacketToServer(PacketHandler.instance().getPacket(DarkMain.CHANNEL, this, task.getPosition().intX(), task.getPosition().intY(), task.save(new NBTTagCompound())));
|
||||
PacketDispatcher.sendPacketToServer(PacketHandler.instance().getTilePacket(DarkMain.CHANNEL, this, task.getPosition().intX(), task.getPosition().intY(), task.save(new NBTTagCompound())));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -276,7 +276,7 @@ public class TileEntityProcessor extends TileEntityEnergyMachine
|
|||
{
|
||||
if (!this.worldObj.isRemote && entity instanceof EntityPlayerMP)
|
||||
{
|
||||
((EntityPlayerMP) entity).playerNetServerHandler.sendPacketToPlayer(PacketHandler.instance().getPacket(this.getChannel(), this, SimplePacketTypes.GUI.name, this.processingTicks, this.processingTime, this.energyStored));
|
||||
((EntityPlayerMP) entity).playerNetServerHandler.sendPacketToPlayer(PacketHandler.instance().getTilePacket(this.getChannel(), this, SimplePacketTypes.GUI.name, this.processingTicks, this.processingTime, this.energyStored));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue