mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-28 07:56:11 +00:00
Restructured directories
This commit is contained in:
1 parent
ec73305f0e
commit
d5c1db1fd7
104 files changed
+11789
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package codechicken.multipart.minecraft;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.network.play.INetHandlerPlayServer;
|
||||
import net.minecraft.world.World;
|
||||
import codechicken.lib.packet.PacketCustom;
|
||||
import codechicken.lib.packet.PacketCustom.IServerPacketHandler;
|
||||
|
||||
public class McMultipartSPH implements IServerPacketHandler
|
||||
{
|
||||
public static Object channel = MinecraftMultipartMod.instance;
|
||||
|
||||
@Override
|
||||
public void handlePacket(PacketCustom packet, EntityPlayerMP sender, INetHandlerPlayServer netHandler) {
|
||||
switch (packet.getType()) {
|
||||
case 1:
|
||||
EventHandler.place(sender, sender.worldObj);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public static void spawnBurnoutSmoke(World world, int x, int y, int z) {
|
||||
new PacketCustom(channel, 1).writeCoord(x, y, z).sendToChunk(world, x >> 4, z >> 4);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user