mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-18 03:15:22 +00:00
- Familiars: <init>
This commit is contained in:
1 parent
240fcb5703
commit
7a71dc0d95
12 files changed
+455
-3
No files matched your search
@@ -11,6 +11,7 @@ import makeo.gadomancy.client.renderers.block.BlockExtendedNodeJarRenderer;
|
||||
import makeo.gadomancy.client.renderers.block.RenderBlockTransparent;
|
||||
import makeo.gadomancy.client.renderers.entity.RenderAdditionalGolemBase;
|
||||
import makeo.gadomancy.client.renderers.item.*;
|
||||
import makeo.gadomancy.client.renderers.item.familiar.FamiliarHandlerClient;
|
||||
import makeo.gadomancy.client.renderers.tile.*;
|
||||
import makeo.gadomancy.common.CommonProxy;
|
||||
import makeo.gadomancy.common.blocks.tiles.*;
|
||||
@@ -54,6 +55,8 @@ public class ClientProxy extends CommonProxy {
|
||||
public void initalize() {
|
||||
super.initalize();
|
||||
|
||||
familiarHandler = new FamiliarHandlerClient(); //Overwriting the server sided one.
|
||||
|
||||
injectGolemTextures();
|
||||
|
||||
//Tiles
|
||||
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
package makeo.gadomancy.client.renderers.item.familiar;
|
||||
|
||||
import makeo.gadomancy.common.familiar.FamiliarHandlerServer;
|
||||
import makeo.gadomancy.common.network.packets.PacketFamiliar;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
*
|
||||
* Created by HellFirePvP @ 31.10.2015 12:13
|
||||
*/
|
||||
public class FamiliarHandlerClient extends FamiliarHandlerServer {
|
||||
|
||||
//TODO has to handle rendering and processing of animation packets.
|
||||
|
||||
@Override
|
||||
public void setupPostInit() {
|
||||
super.setupPostInit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void notifyEquip(World world, ItemStack familiarStack, EntityPlayer player) {
|
||||
super.notifyEquip(world, familiarStack, player);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void notifyUnequip(World world, ItemStack familiarStack, EntityPlayer player) {
|
||||
super.notifyUnequip(world, familiarStack, player);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void equippedTick(World world, ItemStack familiarStack, EntityPlayer player) {
|
||||
super.equippedTick(world, familiarStack, player);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void processPacket(PacketFamiliar packet) {
|
||||
if(packet instanceof PacketFamiliar.PacketFamiliarBolt) {
|
||||
//TODO zap given coordinates from current familiar render coordinates
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,8 @@ import makeo.gadomancy.common.containers.ContainerInfusionClaw;
|
||||
import makeo.gadomancy.common.events.EventHandlerGolem;
|
||||
import makeo.gadomancy.common.events.EventHandlerNetwork;
|
||||
import makeo.gadomancy.common.events.EventHandlerWorld;
|
||||
import makeo.gadomancy.common.familiar.FamiliarHandler;
|
||||
import makeo.gadomancy.common.familiar.FamiliarHandlerServer;
|
||||
import makeo.gadomancy.common.network.PacketHandler;
|
||||
import makeo.gadomancy.common.registration.*;
|
||||
import makeo.gadomancy.client.ClientProxy;
|
||||
@@ -40,6 +42,7 @@ import java.util.List;
|
||||
*/
|
||||
public class CommonProxy implements IGuiHandler {
|
||||
public static final EventHandlerGolem EVENT_HANDLER_GOLEM = new EventHandlerGolem();
|
||||
public FamiliarHandler familiarHandler;
|
||||
|
||||
public void onConstruct() { }
|
||||
|
||||
@@ -56,6 +59,7 @@ public class CommonProxy implements IGuiHandler {
|
||||
}
|
||||
|
||||
public void initalize() {
|
||||
familiarHandler = new FamiliarHandlerServer();
|
||||
|
||||
NetworkRegistry.INSTANCE.registerGuiHandler(Gadomancy.instance, this);
|
||||
|
||||
@@ -77,6 +81,8 @@ public class CommonProxy implements IGuiHandler {
|
||||
RegisteredItems.postInit();
|
||||
|
||||
ModSubstitutions.postInit();
|
||||
|
||||
familiarHandler.setupPostInit();
|
||||
}
|
||||
|
||||
public static void unregisterWandHandler(String modid, Block block, int metadata) {
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
package makeo.gadomancy.common.familiar;
|
||||
|
||||
import makeo.gadomancy.common.familiar.ai.FamiliarAIProcess;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
*
|
||||
* Created by HellFirePvP @ 31.10.2015 14:08
|
||||
*/
|
||||
public class FamiliarAIController {
|
||||
|
||||
private static final Random RAND = new Random();
|
||||
|
||||
private List<FamiliarAIProcess> availableTasks = new ArrayList<FamiliarAIProcess>();
|
||||
private Map<FamiliarAIProcess, Integer> cooldownProcesses = new HashMap<FamiliarAIProcess, Integer>();
|
||||
private FamiliarAIProcess runningTask;
|
||||
private int ticksInTask;
|
||||
private EntityPlayer owningPlayer;
|
||||
|
||||
public FamiliarAIController(EntityPlayer owningPlayer) {
|
||||
this.owningPlayer = owningPlayer;
|
||||
}
|
||||
|
||||
public void sheduleTick() {
|
||||
reduceRunningCooldowns();
|
||||
if(runningTask == null) {
|
||||
selectNewTask();
|
||||
} else {
|
||||
runningTask.tick(ticksInTask, owningPlayer.worldObj, owningPlayer);
|
||||
ticksInTask++;
|
||||
if(ticksInTask >= runningTask.getDuration()) {
|
||||
if(runningTask.getCooldownDuration() > 0) cooldownProcesses.put(runningTask, runningTask.getCooldownDuration());
|
||||
runningTask = null;
|
||||
ticksInTask = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void selectNewTask() {
|
||||
int size = availableTasks.size();
|
||||
int randIndex = RAND.nextInt(size);
|
||||
for (int i = 0; i < size; i++) {
|
||||
int index = (randIndex + i) % size;
|
||||
FamiliarAIProcess process = availableTasks.get(index);
|
||||
if(process.canRun(owningPlayer.worldObj, owningPlayer.posX, owningPlayer.posY, owningPlayer.posZ, owningPlayer) &&
|
||||
!cooldownProcesses.containsKey(process)) {
|
||||
runningTask = process;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void reduceRunningCooldowns() {
|
||||
Iterator<FamiliarAIProcess> itProcesses = cooldownProcesses.keySet().iterator();
|
||||
while(itProcesses.hasNext()) {
|
||||
FamiliarAIProcess process = itProcesses.next();
|
||||
int cd = cooldownProcesses.get(process) - 1;
|
||||
if(cd <= 0) {
|
||||
itProcesses.remove();
|
||||
} else {
|
||||
cooldownProcesses.put(process, cd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public EntityPlayer getOwningPlayer() {
|
||||
return owningPlayer;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package makeo.gadomancy.common.familiar;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
* <p/>
|
||||
* Created by HellFirePvP @ 31.10.2015 12:11
|
||||
*/
|
||||
public interface FamiliarHandler {
|
||||
|
||||
public void setupPostInit();
|
||||
|
||||
public void notifyEquip(World world, ItemStack familiarStack, EntityPlayer player);
|
||||
|
||||
public void notifyUnequip(World world, ItemStack familiarStack, EntityPlayer player);
|
||||
|
||||
public void equippedTick(World world, ItemStack familiarStack, EntityPlayer player);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package makeo.gadomancy.common.familiar;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
*
|
||||
* Created by HellFirePvP @ 31.10.2015 12:10
|
||||
*/
|
||||
public class FamiliarHandlerServer implements FamiliarHandler {
|
||||
|
||||
private Map<EntityPlayer, FamiliarAIController> familiarAI;
|
||||
//TODO has to handle attacks, protection, ...
|
||||
|
||||
@Override
|
||||
public void setupPostInit() {
|
||||
familiarAI = new HashMap<EntityPlayer, FamiliarAIController>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void notifyEquip(World world, ItemStack familiarStack, EntityPlayer player) {
|
||||
if(!world.isRemote) familiarAI.put(player, new FamiliarAIController(player));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void notifyUnequip(World world, ItemStack familiarStack, EntityPlayer player) {
|
||||
if(!world.isRemote) familiarAI.remove(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void equippedTick(World world, ItemStack familiarStack, EntityPlayer player) {
|
||||
if(!world.isRemote) familiarAI.get(player).sheduleTick();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package makeo.gadomancy.common.familiar.ai;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
*
|
||||
* Created by HellFirePvP @ 31.10.2015 14:05
|
||||
*/
|
||||
public abstract class FamiliarAIProcess {
|
||||
|
||||
private static int sessionProcessIdCounter = 0;
|
||||
private int id;
|
||||
private int duration;
|
||||
|
||||
public FamiliarAIProcess(int durationTicks) {
|
||||
this.duration = durationTicks;
|
||||
this.id = sessionProcessIdCounter++;
|
||||
}
|
||||
|
||||
public abstract boolean canRun(World world, double x, double y, double z, EntityPlayer parent);
|
||||
|
||||
public abstract void tick(int ticksSoFar, World worldObj, EntityPlayer owningPlayer);
|
||||
|
||||
public abstract int getCooldownDuration();
|
||||
|
||||
public boolean tryLoop() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final int getDuration() {
|
||||
return duration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
FamiliarAIProcess that = (FamiliarAIProcess) o;
|
||||
return id == that.id;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package makeo.gadomancy.common.items.baubles;
|
||||
|
||||
import baubles.api.BaubleType;
|
||||
import baubles.api.IBauble;
|
||||
import makeo.gadomancy.common.Gadomancy;
|
||||
import makeo.gadomancy.common.registration.RegisteredItems;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
*
|
||||
* Created by HellFirePvP @ 31.10.2015 11:38
|
||||
*/
|
||||
public class ItemFamiliar extends Item implements IBauble {
|
||||
|
||||
public ItemFamiliar() {
|
||||
setUnlocalizedName("ItemFamiliar");
|
||||
setCreativeTab(RegisteredItems.creativeTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BaubleType getBaubleType(ItemStack paramItemStack) {
|
||||
return BaubleType.AMULET;
|
||||
}
|
||||
|
||||
//Called both server- and clientside!
|
||||
|
||||
@Override
|
||||
public void onWornTick(ItemStack itemStack, EntityLivingBase entity) {
|
||||
if(entity instanceof EntityPlayer && itemStack.getItem() instanceof ItemFamiliar) {
|
||||
Gadomancy.proxy.familiarHandler.equippedTick(((EntityPlayer) entity).worldObj, itemStack, (EntityPlayer) entity);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEquipped(ItemStack itemStack, EntityLivingBase entity) {
|
||||
if(entity instanceof EntityPlayer && itemStack.getItem() instanceof ItemFamiliar) {
|
||||
Gadomancy.proxy.familiarHandler.notifyEquip(((EntityPlayer) entity).worldObj, itemStack, (EntityPlayer) entity);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUnequipped(ItemStack itemStack, EntityLivingBase entity) {
|
||||
if(entity instanceof EntityPlayer && itemStack.getItem() instanceof ItemFamiliar) {
|
||||
Gadomancy.proxy.familiarHandler.notifyUnequip(((EntityPlayer) entity).worldObj, itemStack, (EntityPlayer) entity);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canEquip(ItemStack itemStack, EntityLivingBase entity) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canUnequip(ItemStack itemStack, EntityLivingBase entity) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import makeo.gadomancy.common.Gadomancy;
|
||||
import makeo.gadomancy.common.network.packets.PacketAnimationAbsorb;
|
||||
import makeo.gadomancy.common.network.packets.PacketFamiliar;
|
||||
import makeo.gadomancy.common.network.packets.PacketStartAnimation;
|
||||
import makeo.gadomancy.common.network.packets.PacketTCNodeBolt;
|
||||
import makeo.gadomancy.common.network.packets.PacketTCWispyLine;
|
||||
@@ -29,5 +30,7 @@ public class PacketHandler {
|
||||
INSTANCE.registerMessage(PacketAnimationAbsorb.class, PacketAnimationAbsorb.class, id++, Side.CLIENT);
|
||||
INSTANCE.registerMessage(PacketTCNodeBolt.class, PacketTCNodeBolt.class, id++, Side.CLIENT);
|
||||
INSTANCE.registerMessage(PacketTCWispyLine.class, PacketTCWispyLine.class, id++, Side.CLIENT);
|
||||
|
||||
INSTANCE.registerMessage(PacketFamiliar.PacketFamiliarBolt.class, PacketFamiliar.PacketFamiliarBolt.class, id++, Side.CLIENT);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package makeo.gadomancy.common.network.packets;
|
||||
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessage;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
|
||||
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import makeo.gadomancy.client.renderers.item.familiar.FamiliarHandlerClient;
|
||||
import makeo.gadomancy.common.Gadomancy;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
* <p/>
|
||||
* Created by HellFirePvP @ 31.10.2015 14:36
|
||||
*/
|
||||
public abstract class PacketFamiliar {
|
||||
|
||||
public static class PacketFamiliarBolt extends PacketFamiliar implements IMessage, IMessageHandler<PacketFamiliarBolt, IMessage> {
|
||||
|
||||
private float targetX, targetY, targetZ;
|
||||
|
||||
public PacketFamiliarBolt() {}
|
||||
|
||||
public PacketFamiliarBolt(float targetX, float targetY, float targetZ) {
|
||||
this.targetX = targetX;
|
||||
this.targetY = targetY;
|
||||
this.targetZ = targetZ;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fromBytes(ByteBuf buf) {
|
||||
this.targetX = buf.readFloat();
|
||||
this.targetY = buf.readFloat();
|
||||
this.targetZ = buf.readFloat();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toBytes(ByteBuf buf) {
|
||||
buf.writeFloat(targetX);
|
||||
buf.writeFloat(targetY);
|
||||
buf.writeFloat(targetZ);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IMessage onMessage(PacketFamiliarBolt packet, MessageContext ctx) {
|
||||
((FamiliarHandlerClient) Gadomancy.proxy.familiarHandler).processPacket(packet);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package makeo.gadomancy.common.registration;
|
||||
|
||||
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
import makeo.gadomancy.common.familiar.ai.FamiliarAIProcess;
|
||||
import makeo.gadomancy.common.network.PacketHandler;
|
||||
import makeo.gadomancy.common.network.packets.PacketFamiliar;
|
||||
import net.minecraft.entity.monster.EntityMob;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
*
|
||||
* Created by HellFirePvP @ 31.10.2015 14:12
|
||||
*/
|
||||
public class RegisteredFamiliarAI {
|
||||
|
||||
public static FamiliarAIProcess familiarAIIdle = new FamiliarAIProcess(1) {
|
||||
@Override
|
||||
public boolean canRun(World world, double x, double y, double z, EntityPlayer parent) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tick(int ticksSoFar, World worldObj, EntityPlayer owningPlayer) {}
|
||||
|
||||
@Override
|
||||
public int getCooldownDuration() {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
public static FamiliarAIProcess familiarAIZapMonsters = new FamiliarAIProcess(1) {
|
||||
@Override
|
||||
public boolean canRun(World world, double x, double y, double z, EntityPlayer parent) {
|
||||
return !world.getEntitiesWithinAABB(EntityMob.class, AxisAlignedBB.getBoundingBox(parent.posX - 0.5, parent.posY - 0.5, parent.posZ - 0.5, parent.posX + 0.5, parent.posY + 0.5, parent.posZ + 0.5).expand(5, 5, 5)).isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tick(int ticksSoFar, World world, EntityPlayer parent) {
|
||||
List mobs = world.getEntitiesWithinAABB(EntityMob.class, AxisAlignedBB.getBoundingBox(parent.posX - 0.5, parent.posY - 0.5, parent.posZ - 0.5, parent.posX + 0.5, parent.posY + 0.5, parent.posZ + 0.5).expand(5, 5, 5));
|
||||
Object random = mobs.get(world.rand.nextInt(mobs.size()));
|
||||
EntityMob mob = (EntityMob) random;
|
||||
|
||||
mob.attackEntityFrom(DamageSource.magic, 6);
|
||||
|
||||
PacketFamiliar.PacketFamiliarBolt bolt = new PacketFamiliar.PacketFamiliarBolt((float) mob.posX, (float) mob.posY, (float) mob.posZ);
|
||||
PacketHandler.INSTANCE.sendToAllAround(bolt, new NetworkRegistry.TargetPoint(mob.worldObj.provider.dimensionId, mob.posX, mob.posY, mob.posZ, 32));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean tryLoop() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCooldownDuration() {
|
||||
return 20;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package makeo.gadomancy.common.registration;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import makeo.gadomancy.common.Gadomancy;
|
||||
import makeo.gadomancy.common.items.*;
|
||||
import makeo.gadomancy.common.items.baubles.ItemFamiliar;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -35,9 +36,7 @@ public class RegisteredItems {
|
||||
public static Item itemTransformationFocus;
|
||||
public static Item itemGolemCoreBreak;
|
||||
public static Item itemExtendedNodeJar;
|
||||
|
||||
//@Deprecated
|
||||
//public static Item itemBlockAiryCopy; //!!!!!!!!!!DO NOT TOUCH THIS OR USE THIS ANYWHERE!!!!!!!!!!
|
||||
public static Item itemFamiliar;
|
||||
|
||||
public static void preInit() {
|
||||
creativeTab = new CreativeTabs(Gadomancy.MODID) {
|
||||
@@ -66,6 +65,7 @@ public class RegisteredItems {
|
||||
itemTransformationFocus = registerItem(new ItemTransformationFocus());
|
||||
itemGolemCoreBreak = registerItem(new ItemGolemCoreBreak());
|
||||
itemExtendedNodeJar = registerItem(new ItemExtendedNodeJar());
|
||||
itemFamiliar = registerItem(new ItemFamiliar());
|
||||
}
|
||||
|
||||
private static <T extends Item> T registerItem(T item, String name) {
|
||||
|
||||
Reference in new issue
Block a user