Massive rework of configs, items and blocks.
I redone where the items/blocsks are stored and how the configs are handled to clean up it and give space. You can change the config line to AWWayofTime if you want to keep the compatibility with old configs. Now you reference the blocks from the ModBlocks and Items from the ModItems.
This commit is contained in:
parent
8601e9faff
commit
e3644f2d2b
304 changed files with 3941 additions and 5108 deletions
|
@ -1,17 +1,17 @@
|
|||
package WayofTime.alchemicalWizardry.common.entity.mob;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.IDemon;
|
||||
import WayofTime.alchemicalWizardry.common.ModItems;
|
||||
import WayofTime.alchemicalWizardry.common.items.DemonPlacer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityAgeable;
|
||||
import net.minecraft.entity.passive.EntityTameable;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ChatMessageComponent;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.alchemicalWizardry.common.AlchemicalWizardry;
|
||||
import WayofTime.alchemicalWizardry.common.IDemon;
|
||||
import WayofTime.alchemicalWizardry.common.items.DemonPlacer;
|
||||
|
||||
public class EntityDemon extends EntityTameable implements IDemon
|
||||
{
|
||||
public class EntityDemon extends EntityTameable implements IDemon {
|
||||
private boolean isAggro;
|
||||
private int demonID;
|
||||
|
||||
|
@ -48,7 +48,7 @@ public class EntityDemon extends EntityTameable implements IDemon
|
|||
|
||||
protected void dropFewItems(boolean par1, int par2)
|
||||
{
|
||||
ItemStack drop = new ItemStack(AlchemicalWizardry.demonPlacer, 1, this.getDemonID());
|
||||
ItemStack drop = new ItemStack(ModItems.demonPlacer, 1, this.getDemonID());
|
||||
DemonPlacer.setOwnerName(drop, this.getOwnerName());
|
||||
|
||||
if (this.hasCustomNameTag())
|
||||
|
@ -78,8 +78,7 @@ public class EntityDemon extends EntityTameable implements IDemon
|
|||
if (isSitting)
|
||||
{
|
||||
chatmessagecomponent.addText("I will stay here for now, Master.");
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
chatmessagecomponent.addText("I shall follow and protect you!");
|
||||
}
|
||||
|
@ -92,4 +91,10 @@ public class EntityDemon extends EntityTameable implements IDemon
|
|||
{
|
||||
return this.demonID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Entity getOwner()
|
||||
{
|
||||
return func_130012_q();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue