Skip to content

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
 * Updated for Spigot 1.11.2.
 * Dropped the WitherSkeleton predefined type. Use the corresponding
   EntityType constant, WITHER_SKELETON (case-insensitive), in configs
   instead. NOTE: CONFIGURATIONS MUST BE UPDATED.
  • Loading branch information
totemo committed Jan 21, 2017
1 parent 2264448 commit adc755e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.totemo</groupId>
<artifactId>Doppelganger</artifactId>
<version>0.11.0</version>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>Doppelganger</name>
<description>Provides custom, summonable mobs that are reminiscent of the built-in golem types.</description>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.9-R0.1-SNAPSHOT</version>
<version>1.11-R0.1-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
Expand Down
17 changes: 0 additions & 17 deletions src/io/github/totemo/doppelganger/PredefinedCreature.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Pig;
import org.bukkit.entity.PigZombie;
import org.bukkit.entity.Skeleton;
import org.bukkit.entity.Skeleton.SkeletonType;
import org.bukkit.entity.Villager;
import org.bukkit.entity.Villager.Profession;
import org.bukkit.entity.Zombie;
Expand All @@ -24,21 +22,6 @@
* rather than instantiating a unique class.
*/
public enum PredefinedCreature implements IPredefinedCreature {
WitherSkeleton(new IPredefinedCreature() {
@Override
public boolean isInstance(LivingEntity living) {
return living instanceof Skeleton &&
((Skeleton) living).getSkeletonType() == SkeletonType.WITHER;
}

@Override
public LivingEntity spawn(Location loc) {
Skeleton skeleton = loc.getWorld().spawn(loc, Skeleton.class);
skeleton.setSkeletonType(SkeletonType.WITHER);
return skeleton;
}
}),

SaddledPig(new IPredefinedCreature() {
@Override
public boolean isInstance(LivingEntity living) {
Expand Down

0 comments on commit adc755e

Please sign in to comment.