Packet handler change

This commit is contained in:
DarkGuardsman 2013-11-12 23:34:31 -05:00
parent 1e70387ac6
commit 0afe037f51
9 changed files with 12 additions and 12 deletions

View file

@ -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()

View file

@ -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);
}
// ///////////////////////////////////////

View file

@ -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);
}
}

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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;
}

View file

@ -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())));
}
}

View file

@ -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));
}
}