this doesn't compile yet, but have something to peek at
This commit is contained in:
parent
973f1019a5
commit
5fcdd978d7
329 changed files with 3247 additions and 2953 deletions
|
@ -1,17 +1,17 @@
|
|||
package WayofTime.bloodmagic.network;
|
||||
|
||||
import WayofTime.bloodmagic.BloodMagic;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.fml.common.network.NetworkRegistry;
|
||||
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
|
||||
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
import WayofTime.bloodmagic.util.ChatUtil;
|
||||
|
||||
public class BloodMagicPacketHandler
|
||||
{
|
||||
public static final SimpleNetworkWrapper INSTANCE = new SimpleNetworkWrapper(Constants.Mod.MODID);
|
||||
public static final SimpleNetworkWrapper INSTANCE = new SimpleNetworkWrapper(BloodMagic.MODID);
|
||||
|
||||
public static void init()
|
||||
{
|
||||
|
|
|
@ -41,7 +41,7 @@ public class KeyProcessor implements IMessage, IMessageHandler<KeyProcessor, IMe
|
|||
@Override
|
||||
public IMessage onMessage(KeyProcessor msg, MessageContext ctx)
|
||||
{
|
||||
EntityPlayer entityPlayer = ctx.getServerHandler().playerEntity;
|
||||
EntityPlayer entityPlayer = ctx.getServerHandler().player;
|
||||
|
||||
if (entityPlayer != null)
|
||||
{
|
||||
|
|
|
@ -42,7 +42,7 @@ public class PlayerFallDistancePacketProcessor implements IMessage, IMessageHand
|
|||
{
|
||||
if (ctx.side == Side.SERVER)
|
||||
{
|
||||
message.onMessageFromClient(ctx.getServerHandler().playerEntity);
|
||||
message.onMessageFromClient(ctx.getServerHandler().player);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public class SigilHoldingPacketProcessor implements IMessage, IMessageHandler<Si
|
|||
|
||||
if (message.slot > -1 && message.slot < 9)
|
||||
{
|
||||
itemStack = ctx.getServerHandler().playerEntity.inventory.getStackInSlot(message.slot);
|
||||
itemStack = ctx.getServerHandler().player.inventory.getStackInSlot(message.slot);
|
||||
}
|
||||
|
||||
if (!itemStack.isEmpty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue