mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-12-17 22:57:39 +01:00
Update src/com/garbagemule/MobArena/waves/MACreature.java
add new 1.4.5 mobs, utilizes 1.4.5-DEV !!! CraftBukkit #2524
This commit is contained in:
parent
d140712206
commit
44bacf8814
@ -5,12 +5,16 @@ import java.util.List;
|
||||
|
||||
import org.bukkit.DyeColor;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.entity.Creature;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Creeper;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.PigZombie;
|
||||
import org.bukkit.entity.Sheep;
|
||||
import org.bukkit.entity.Skeleton;
|
||||
import org.bukkit.entity.Skeleton.SkeletonType;
|
||||
import org.bukkit.entity.Slime;
|
||||
import org.bukkit.entity.Wolf;
|
||||
|
||||
@ -70,7 +74,13 @@ public enum MACreature
|
||||
MAGMACUBETINY(EntityType.MAGMA_CUBE), MAGMACUBESTINY(EntityType.MAGMA_CUBE),
|
||||
MAGMACUBESMALL(EntityType.MAGMA_CUBE),MAGMACUBESSMALL(EntityType.MAGMA_CUBE),
|
||||
MAGMACUBEBIG(EntityType.MAGMA_CUBE), MAGMACUBESBIG(EntityType.MAGMA_CUBE),
|
||||
MAGMACUBEHUGE(EntityType.MAGMA_CUBE), MAGMACUBESHUGE(EntityType.MAGMA_CUBE);
|
||||
MAGMACUBEHUGE(EntityType.MAGMA_CUBE), MAGMACUBESHUGE(EntityType.MAGMA_CUBE),
|
||||
|
||||
// 1.4 creatures
|
||||
BAT(EntityType.BAT), BATS(EntityType.BAT),
|
||||
WITCH(EntityType.WITCH), WITCHES(EntityType.WITCH),
|
||||
WITHER(EntityType.WITHER), WITHERS(EntityType.WITHER),
|
||||
WITHERSKELETON(EntityType.SKELETON), WITHERSKELETONS(EntityType.SKELETON);
|
||||
|
||||
private List<DyeColor> colors = Arrays.asList(DyeColor.values());
|
||||
private EntityType type;
|
||||
@ -134,6 +144,19 @@ public enum MACreature
|
||||
case MAGMACUBESHUGE:
|
||||
((Slime) e).setSize(4);
|
||||
break;
|
||||
case SKELETON:
|
||||
case SKELETONS:
|
||||
((Skeleton) e).getEquipment().setItemInHand(new ItemStack(Material.BOW, 1));
|
||||
break;
|
||||
case ZOMBIEPIGMAN:
|
||||
case ZOMBIEPIGMEN:
|
||||
((PigZombie) e).getEquipment().setItemInHand(new ItemStack(Material.GOLD_SWORD, 1));
|
||||
break;
|
||||
case WITHERSKELETON:
|
||||
case WITHERSKELETONS:
|
||||
((Skeleton) e).getEquipment().setItemInHand(new ItemStack(Material.STONE_SWORD, 1));
|
||||
((Skeleton) e).setSkeletonType(SkeletonType.WITHER);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user