mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-16 01:54:46 +00:00
Change package name for realsies now :P
This commit is contained in:
1 parent
4d8df815cc
commit
dae454dc17
138 files changed
+491
-438
No files matched your search
@@ -0,0 +1,47 @@
|
||||
package com.cricketcraft.chisel;
|
||||
|
||||
public class Packets// extends MessageHandlerBase
|
||||
{
|
||||
|
||||
//TODO packet
|
||||
public static final int CHISELED = 1;
|
||||
/*
|
||||
|
||||
public void onChiseled(Packet stream, EntityPlayer player) throws IOException
|
||||
{
|
||||
final int x = stream.readInt();
|
||||
final int y = stream.readInt();
|
||||
final int z = stream.readInt();
|
||||
|
||||
switch(FMLCommonHandler.instance().getEffectiveSide())
|
||||
{
|
||||
case SERVER:
|
||||
Packet packet = Chisel.packet.create(CHISELED).writeInt(x).writeInt(y).writeInt(z);
|
||||
Chisel.packet.sendToAllAround(packet, new TargetPoint(player.dimension, x, y, z, 30.0f));
|
||||
break;
|
||||
case CLIENT:
|
||||
Block block = player.worldObj.getBlock(x, y, z);
|
||||
int blockMeta = player.worldObj.getBlockMetadata(x, y, z);
|
||||
GeneralChiselClient.spawnChiselEffect(x, y, z, Carving.chisel.getVariationSound(block, blockMeta));
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMessage(Packet packet, INetHandler handler,
|
||||
EntityPlayer player, int command) throws IOException
|
||||
{
|
||||
switch(command)
|
||||
{
|
||||
case CHISELED:
|
||||
onChiseled(packet, player);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
}
|
||||
Reference in new issue
Block a user