mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
Separate BlueSlime and King Slime into separate entities + baseclass
This commit is contained in:
1 parent
345704f8dd
commit
d089455063
10 files changed
+582
-609
No files matched your search
@@ -15,7 +15,9 @@ import net.minecraft.world.World;
|
||||
import tconstruct.client.TProxyClient;
|
||||
import tconstruct.library.tools.ToolCore;
|
||||
import tconstruct.world.entity.BlueSlime;
|
||||
import tconstruct.world.entity.KingBlueSlime;
|
||||
|
||||
// spawn egg.
|
||||
public class TitleIcon extends Item
|
||||
{
|
||||
int[] primaryColor = { 0x66BBE8, 0x66BBE8 };
|
||||
@@ -29,6 +31,7 @@ public class TitleIcon extends Item
|
||||
{
|
||||
super();
|
||||
this.setCreativeTab(CreativeTabs.tabMisc);
|
||||
this.setHasSubtypes(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -135,7 +138,7 @@ public class TitleIcon extends Item
|
||||
spawnEntity(posX, posY, posZ, new BlueSlime(world), world, player);
|
||||
break;
|
||||
case 1:
|
||||
spawnBossSlime(posX, posY, posZ, new BlueSlime(world), world, player);
|
||||
spawnBossSlime(posX, posY, posZ, new KingBlueSlime(world), world, player);
|
||||
break;
|
||||
}
|
||||
if (!player.capabilities.isCreativeMode)
|
||||
@@ -168,8 +171,8 @@ public class TitleIcon extends Item
|
||||
spawnEntity(posX, posY, posZ, entity, world);
|
||||
break;
|
||||
case 1:
|
||||
entity = new BlueSlime(world);
|
||||
spawnBossSlime(posX, posY, posZ, new BlueSlime(world), world);
|
||||
entity = new KingBlueSlime(world);
|
||||
spawnBossSlime(posX, posY, posZ, new KingBlueSlime(world), world);
|
||||
break;
|
||||
}
|
||||
return entity;
|
||||
@@ -197,7 +200,7 @@ public class TitleIcon extends Item
|
||||
}
|
||||
}
|
||||
|
||||
public static void spawnBossSlime (double x, double y, double z, BlueSlime entity, World world, EntityPlayer player)
|
||||
public static void spawnBossSlime (double x, double y, double z, KingBlueSlime entity, World world, EntityPlayer player)
|
||||
{
|
||||
if (!world.isRemote)
|
||||
{
|
||||
@@ -208,7 +211,7 @@ public class TitleIcon extends Item
|
||||
}
|
||||
}
|
||||
|
||||
public static void spawnBossSlime (double x, double y, double z, BlueSlime entity, World world)
|
||||
public static void spawnBossSlime (double x, double y, double z, KingBlueSlime entity, World world)
|
||||
{
|
||||
if (!world.isRemote)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user