mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-26 02:17:38 +01:00
Added support for slimes and magama cubes.
This commit is contained in:
parent
62868dce12
commit
be57ecfaac
@ -59,6 +59,8 @@ public class Methods {
|
||||
((Sheep) newEntity).setColor(((Sheep) killed).getColor());
|
||||
} else if (killed instanceof Villager) {
|
||||
((Villager) newEntity).setProfession(((Villager) killed).getProfession());
|
||||
} else if (killed instanceof Slime) {
|
||||
((Slime)newEntity).setSize(((Slime)killed).getSize());;
|
||||
}
|
||||
|
||||
newEntity.setFireTicks(killed.getFireTicks());
|
||||
@ -99,6 +101,11 @@ public class Methods {
|
||||
entityList.removeIf(entity -> ((Villager) entity).getProfession() != villager.getProfession());
|
||||
}
|
||||
|
||||
if (initalEntity instanceof Slime) {
|
||||
Slime slime = ((Slime) initalEntity);
|
||||
entityList.removeIf(entity -> ((Slime)entity).getSize() != slime.getSize());
|
||||
}
|
||||
|
||||
if (initalEntity.hasMetadata("breedCooldown")) {
|
||||
entityList.removeIf(entity -> !entity.hasMetadata("breedCooldown"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user