Adding needed backend stuff in the form of packet handling
This commit is contained in:
parent
fd437fb4ca
commit
c0abd69a2a
|
@ -14,6 +14,8 @@ import net.minecraft.util.MathHelper;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.util.Vec3;
|
import net.minecraft.util.Vec3;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
|
|
||||||
public class APISpellHelper
|
public class APISpellHelper
|
||||||
{
|
{
|
||||||
|
@ -51,6 +53,96 @@ public class APISpellHelper
|
||||||
data.setInteger("BM:MaxStoredLP", amount);
|
data.setInteger("BM:MaxStoredLP", amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static float getPlayerCurrentReagentAmount(EntityPlayer player)
|
||||||
|
{
|
||||||
|
NBTTagCompound data = player.getEntityData();
|
||||||
|
if(data.hasKey("BM:StoredReagentAmount"))
|
||||||
|
{
|
||||||
|
return data.getFloat("BM:StoredReagentAmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setPlayerCurrentReagentAmount(EntityPlayer player, float amount)
|
||||||
|
{
|
||||||
|
NBTTagCompound data = player.getEntityData();
|
||||||
|
data.setFloat("BM:StoredReagentAmount", amount);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static float getPlayerMaxReagentAmount(EntityPlayer player)
|
||||||
|
{
|
||||||
|
NBTTagCompound data = player.getEntityData();
|
||||||
|
if(data.hasKey("BM:MaxReagentAmount"))
|
||||||
|
{
|
||||||
|
return data.getFloat("BM:MaxReagentAmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setPlayerMaxReagentAmount(EntityPlayer player, float amount)
|
||||||
|
{
|
||||||
|
NBTTagCompound data = player.getEntityData();
|
||||||
|
data.setFloat("BM:MaxReagentAmount", amount);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Reagent getPlayerReagentType(EntityPlayer player)
|
||||||
|
{
|
||||||
|
NBTTagCompound data = player.getEntityData();
|
||||||
|
if(data.hasKey("BM:ReagentType"))
|
||||||
|
{
|
||||||
|
return ReagentRegistry.getReagentForKey(data.getString("BM:ReagentType"));
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setPlayerReagentType(EntityPlayer player, String str)
|
||||||
|
{
|
||||||
|
NBTTagCompound data = player.getEntityData();
|
||||||
|
data.setString("BM:ReagentType", str);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setPlayerReagentType(EntityPlayer player, Reagent reagent)
|
||||||
|
{
|
||||||
|
setPlayerReagentType(player, ReagentRegistry.getKeyForReagent(reagent));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static int getCurrentAdditionalHP(EntityPlayer player)
|
||||||
|
{
|
||||||
|
NBTTagCompound data = player.getEntityData();
|
||||||
|
if(data.hasKey("BM:CurrentAddedHP"))
|
||||||
|
{
|
||||||
|
return data.getInteger("BM:CurrentAddedHP");
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setCurrentAdditionalHP(EntityPlayer player, int amount)
|
||||||
|
{
|
||||||
|
NBTTagCompound data = player.getEntityData();
|
||||||
|
data.setInteger("BM:CurrentAddedHP", amount);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static int getCurrentAdditionalMaxHP(EntityPlayer player)
|
||||||
|
{
|
||||||
|
NBTTagCompound data = player.getEntityData();
|
||||||
|
if(data.hasKey("BM:MaxAddedHP"))
|
||||||
|
{
|
||||||
|
return data.getInteger("BM:MaxAddedHP");
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setCurrentAdditionalMaxHP(EntityPlayer player, int amount)
|
||||||
|
{
|
||||||
|
NBTTagCompound data = player.getEntityData();
|
||||||
|
data.setInteger("BM:MaxAddedHP", amount);
|
||||||
|
}
|
||||||
|
|
||||||
public static MovingObjectPosition raytraceFromEntity(World world, Entity player, boolean par3, double range)
|
public static MovingObjectPosition raytraceFromEntity(World world, Entity player, boolean par3, double range)
|
||||||
{
|
{
|
||||||
float f = 1.0F;
|
float f = 1.0F;
|
||||||
|
|
|
@ -1,19 +1,13 @@
|
||||||
package WayofTime.alchemicalWizardry.common;
|
package WayofTime.alchemicalWizardry.common;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
|
||||||
import WayofTime.alchemicalWizardry.api.ColourAndCoords;
|
|
||||||
import WayofTime.alchemicalWizardry.api.spell.APISpellHelper;
|
|
||||||
import WayofTime.alchemicalWizardry.common.tileEntity.*;
|
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
|
||||||
import cpw.mods.fml.common.network.FMLEmbeddedChannel;
|
|
||||||
import cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec;
|
|
||||||
import cpw.mods.fml.common.network.FMLOutboundHandler;
|
|
||||||
import cpw.mods.fml.common.network.NetworkRegistry;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
import io.netty.channel.ChannelHandlerContext;
|
import io.netty.channel.ChannelHandlerContext;
|
||||||
import io.netty.channel.SimpleChannelInboundHandler;
|
import io.netty.channel.SimpleChannelInboundHandler;
|
||||||
|
|
||||||
|
import java.util.EnumMap;
|
||||||
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.entity.player.EntityPlayerMP;
|
import net.minecraft.entity.player.EntityPlayerMP;
|
||||||
|
@ -21,10 +15,27 @@ import net.minecraft.network.Packet;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||||
import java.util.EnumMap;
|
import WayofTime.alchemicalWizardry.api.ColourAndCoords;
|
||||||
import java.util.LinkedList;
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
import java.util.List;
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
|
import WayofTime.alchemicalWizardry.api.spell.APISpellHelper;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEMasterStone;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEOrientable;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEPedestal;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEPlinth;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEReagentConduit;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TESocket;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TETeleposer;
|
||||||
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEWritingTable;
|
||||||
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
|
import cpw.mods.fml.common.network.FMLEmbeddedChannel;
|
||||||
|
import cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec;
|
||||||
|
import cpw.mods.fml.common.network.FMLOutboundHandler;
|
||||||
|
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles the packet wrangling for IronChest
|
* Handles the packet wrangling for IronChest
|
||||||
|
@ -73,6 +84,8 @@ public enum NewPacketHandler
|
||||||
clientChannel.pipeline().addAfter(tileAltarCodec, "TEMasterStoneHandler", new TEMasterStoneMessageHandler());
|
clientChannel.pipeline().addAfter(tileAltarCodec, "TEMasterStoneHandler", new TEMasterStoneMessageHandler());
|
||||||
clientChannel.pipeline().addAfter(tileAltarCodec, "TEReagentConduitHandler", new TEReagentConduitMessageHandler());
|
clientChannel.pipeline().addAfter(tileAltarCodec, "TEReagentConduitHandler", new TEReagentConduitMessageHandler());
|
||||||
clientChannel.pipeline().addAfter(tileAltarCodec, "CurrentLPMessageHandler", new CurrentLPMessageHandler());
|
clientChannel.pipeline().addAfter(tileAltarCodec, "CurrentLPMessageHandler", new CurrentLPMessageHandler());
|
||||||
|
clientChannel.pipeline().addAfter(tileAltarCodec, "CurrentReagentBarMessageHandler", new CurrentReagentBarMessageHandler());
|
||||||
|
clientChannel.pipeline().addAfter(tileAltarCodec, "CurrentAddedHPMessageHandler", new CurrentAddedHPMessageHandler());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -267,6 +280,30 @@ public enum NewPacketHandler
|
||||||
APISpellHelper.setPlayerMaxLPTag(player, msg.maxLP);
|
APISpellHelper.setPlayerMaxLPTag(player, msg.maxLP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static class CurrentReagentBarMessageHandler extends SimpleChannelInboundHandler<CurrentReagentBarMessage>
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
protected void channelRead0(ChannelHandlerContext ctx, CurrentReagentBarMessage msg) throws Exception
|
||||||
|
{
|
||||||
|
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
|
||||||
|
|
||||||
|
APISpellHelper.setPlayerCurrentReagentAmount(player, msg.currentAR);
|
||||||
|
APISpellHelper.setPlayerMaxReagentAmount(player, msg.maxAR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class CurrentAddedHPMessageHandler extends SimpleChannelInboundHandler<CurrentAddedHPMessage>
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
protected void channelRead0(ChannelHandlerContext ctx, CurrentAddedHPMessage msg) throws Exception
|
||||||
|
{
|
||||||
|
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
|
||||||
|
|
||||||
|
APISpellHelper.setCurrentAdditionalHP(player, msg.currentHP);
|
||||||
|
APISpellHelper.setCurrentAdditionalMaxHP(player, msg.maxHP);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static class BMMessage
|
public static class BMMessage
|
||||||
{
|
{
|
||||||
|
@ -383,6 +420,19 @@ public enum NewPacketHandler
|
||||||
int currentLP;
|
int currentLP;
|
||||||
int maxLP;
|
int maxLP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class CurrentReagentBarMessage extends BMMessage
|
||||||
|
{
|
||||||
|
String reagent;
|
||||||
|
float currentAR;
|
||||||
|
float maxAR;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class CurrentAddedHPMessage extends BMMessage
|
||||||
|
{
|
||||||
|
int currentHP;
|
||||||
|
int maxHP;
|
||||||
|
}
|
||||||
|
|
||||||
private class TEAltarCodec extends FMLIndexedMessageToMessageCodec<BMMessage>
|
private class TEAltarCodec extends FMLIndexedMessageToMessageCodec<BMMessage>
|
||||||
{
|
{
|
||||||
|
@ -400,6 +450,8 @@ public enum NewPacketHandler
|
||||||
addDiscriminator(9, TEMasterStoneMessage.class);
|
addDiscriminator(9, TEMasterStoneMessage.class);
|
||||||
addDiscriminator(10, TEReagentConduitMessage.class);
|
addDiscriminator(10, TEReagentConduitMessage.class);
|
||||||
addDiscriminator(11, CurrentLPMessage.class);
|
addDiscriminator(11, CurrentLPMessage.class);
|
||||||
|
addDiscriminator(12, CurrentReagentBarMessage.class);
|
||||||
|
addDiscriminator(13, CurrentAddedHPMessage.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -606,6 +658,24 @@ public enum NewPacketHandler
|
||||||
target.writeInt(((CurrentLPMessage) msg).currentLP);
|
target.writeInt(((CurrentLPMessage) msg).currentLP);
|
||||||
target.writeInt(((CurrentLPMessage) msg).maxLP);
|
target.writeInt(((CurrentLPMessage) msg).maxLP);
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 12:
|
||||||
|
char[] charSet = ((CurrentReagentBarMessage)msg).reagent.toCharArray();
|
||||||
|
target.writeInt(charSet.length);
|
||||||
|
for(char cha : charSet)
|
||||||
|
{
|
||||||
|
target.writeChar(cha);
|
||||||
|
}
|
||||||
|
target.writeFloat(((CurrentReagentBarMessage)msg).currentAR);
|
||||||
|
target.writeFloat(((CurrentReagentBarMessage)msg).maxAR);
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 13:
|
||||||
|
target.writeInt(((CurrentAddedHPMessage) msg).currentHP);
|
||||||
|
target.writeInt(((CurrentAddedHPMessage) msg).maxHP);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -819,6 +889,26 @@ public enum NewPacketHandler
|
||||||
((CurrentLPMessage) msg).currentLP = dat.readInt();
|
((CurrentLPMessage) msg).currentLP = dat.readInt();
|
||||||
((CurrentLPMessage) msg).maxLP = dat.readInt();
|
((CurrentLPMessage) msg).maxLP = dat.readInt();
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 12:
|
||||||
|
int size1 = dat.readInt();
|
||||||
|
String str1 = "";
|
||||||
|
for(int i=0; i<size1; i++)
|
||||||
|
{
|
||||||
|
str1 = str1 + dat.readChar();
|
||||||
|
}
|
||||||
|
|
||||||
|
((CurrentReagentBarMessage) msg).reagent = str1;
|
||||||
|
((CurrentReagentBarMessage) msg).currentAR = dat.readFloat();
|
||||||
|
((CurrentReagentBarMessage) msg).maxAR = dat.readFloat();
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 13:
|
||||||
|
((CurrentAddedHPMessage) msg).currentHP = dat.readInt();
|
||||||
|
((CurrentAddedHPMessage) msg).maxHP = dat.readInt();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -974,6 +1064,27 @@ public enum NewPacketHandler
|
||||||
|
|
||||||
return INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg);
|
return INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Packet getReagentBarPacket(Reagent reagent, float curAR, float maxAR)
|
||||||
|
{
|
||||||
|
CurrentReagentBarMessage msg = new CurrentReagentBarMessage();
|
||||||
|
msg.index = 12;
|
||||||
|
msg.reagent = ReagentRegistry.getKeyForReagent(reagent);
|
||||||
|
msg.currentAR = curAR;
|
||||||
|
msg.maxAR = maxAR;
|
||||||
|
|
||||||
|
return INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Packet getAddedHPPacket(int curHP, int maxHP)
|
||||||
|
{
|
||||||
|
CurrentAddedHPMessage msg = new CurrentAddedHPMessage();
|
||||||
|
msg.index = 13;
|
||||||
|
msg.currentHP = curHP;
|
||||||
|
msg.maxHP = maxHP;
|
||||||
|
|
||||||
|
return INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg);
|
||||||
|
}
|
||||||
|
|
||||||
public void sendTo(Packet message, EntityPlayerMP player)
|
public void sendTo(Packet message, EntityPlayerMP player)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,6 +9,7 @@ import net.minecraft.item.ItemArmor;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||||
import WayofTime.alchemicalWizardry.common.omega.OmegaParadigm;
|
import WayofTime.alchemicalWizardry.common.omega.OmegaParadigm;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
@ -17,6 +18,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||||
public abstract class OmegaArmour extends BoundArmour
|
public abstract class OmegaArmour extends BoundArmour
|
||||||
{
|
{
|
||||||
public OmegaParadigm paradigm;
|
public OmegaParadigm paradigm;
|
||||||
|
public Reagent reagent;
|
||||||
|
|
||||||
public OmegaArmour(int armorType)
|
public OmegaArmour(int armorType)
|
||||||
{
|
{
|
||||||
|
@ -28,6 +30,11 @@ public abstract class OmegaArmour extends BoundArmour
|
||||||
this.paradigm = paradigm;
|
this.paradigm = paradigm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setReagent(Reagent reagent)
|
||||||
|
{
|
||||||
|
this.reagent = reagent;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack)
|
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.common.omega;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import WayofTime.alchemicalWizardry.ModItems;
|
import WayofTime.alchemicalWizardry.ModItems;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
|
||||||
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmour;
|
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmour;
|
||||||
|
|
||||||
public class OmegaParadigm
|
public class OmegaParadigm
|
||||||
|
@ -12,7 +13,7 @@ public class OmegaParadigm
|
||||||
public OmegaArmour leggings;
|
public OmegaArmour leggings;
|
||||||
public OmegaArmour boots;
|
public OmegaArmour boots;
|
||||||
|
|
||||||
public OmegaParadigm(OmegaArmour helmet, OmegaArmour chestPiece, OmegaArmour leggings, OmegaArmour boots)
|
public OmegaParadigm(Reagent reagent, OmegaArmour helmet, OmegaArmour chestPiece, OmegaArmour leggings, OmegaArmour boots)
|
||||||
{
|
{
|
||||||
this.helmet = helmet;
|
this.helmet = helmet;
|
||||||
this.chestPiece = chestPiece;
|
this.chestPiece = chestPiece;
|
||||||
|
@ -23,6 +24,10 @@ public class OmegaParadigm
|
||||||
this.chestPiece.setParadigm(this);
|
this.chestPiece.setParadigm(this);
|
||||||
this.leggings.setParadigm(this);
|
this.leggings.setParadigm(this);
|
||||||
this.boots.setParadigm(this);
|
this.boots.setParadigm(this);
|
||||||
|
this.helmet.setReagent(reagent);
|
||||||
|
this.chestPiece.setReagent(reagent);
|
||||||
|
this.leggings.setReagent(reagent);
|
||||||
|
this.boots.setReagent(reagent);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void convertPlayerArmour(EntityPlayer player)
|
public void convertPlayerArmour(EntityPlayer player)
|
||||||
|
|
|
@ -6,6 +6,7 @@ import java.util.List;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import WayofTime.alchemicalWizardry.ModItems;
|
import WayofTime.alchemicalWizardry.ModItems;
|
||||||
|
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
|
||||||
import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
|
import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
|
||||||
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
||||||
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
||||||
|
@ -37,7 +38,7 @@ public class RitualEffectOmegaTest extends RitualEffect
|
||||||
|
|
||||||
for(EntityPlayer player : playerList)
|
for(EntityPlayer player : playerList)
|
||||||
{
|
{
|
||||||
OmegaParadigm waterParadigm = new OmegaParadigm(ModItems.boundHelmetWater, ModItems.boundPlateWater, ModItems.boundLeggingsWater, ModItems.boundBootsWater);
|
OmegaParadigm waterParadigm = new OmegaParadigm(ReagentRegistry.aquasalusReagent, ModItems.boundHelmetWater, ModItems.boundPlateWater, ModItems.boundLeggingsWater, ModItems.boundBootsWater);
|
||||||
waterParadigm.convertPlayerArmour(player);
|
waterParadigm.convertPlayerArmour(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue