Removed old code
This commit is contained in:
parent
a9950a7188
commit
567200ca4d
@ -1,8 +1,6 @@
|
|||||||
package me.libraryaddict.disguise.DisguiseTypes;
|
package me.libraryaddict.disguise.DisguiseTypes;
|
||||||
|
|
||||||
import java.lang.reflect.Constructor;
|
import java.lang.reflect.Constructor;
|
||||||
import java.lang.reflect.Field;
|
|
||||||
import net.minecraft.server.v1_5_R3.DataWatcher;
|
|
||||||
import net.minecraft.server.v1_5_R3.Entity;
|
import net.minecraft.server.v1_5_R3.Entity;
|
||||||
import net.minecraft.server.v1_5_R3.EntityCreeper;
|
import net.minecraft.server.v1_5_R3.EntityCreeper;
|
||||||
import net.minecraft.server.v1_5_R3.EntitySkeleton;
|
import net.minecraft.server.v1_5_R3.EntitySkeleton;
|
||||||
@ -39,8 +37,6 @@ public class Disguise {
|
|||||||
if (disguiseType == DisguiseType.CHARGED_CREEPER) {
|
if (disguiseType == DisguiseType.CHARGED_CREEPER) {
|
||||||
((EntityCreeper) entity).setPowered(true);
|
((EntityCreeper) entity).setPowered(true);
|
||||||
}
|
}
|
||||||
Field field = Entity.class.getDeclaredField("datawatcher");
|
|
||||||
field.setAccessible(true);
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -54,10 +50,6 @@ public class Disguise {
|
|||||||
return disguiseType;
|
return disguiseType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DataWatcher getDataWatcher() {
|
|
||||||
return entity.getDataWatcher();
|
|
||||||
}
|
|
||||||
|
|
||||||
public Entity getEntity() {
|
public Entity getEntity() {
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
#Generated by Maven Integration for Eclipse
|
||||||
|
#Sat May 18 09:45:06 NZST 2013
|
||||||
|
version=v1.0
|
||||||
|
groupId=LibsDisguises
|
||||||
|
m2e.projectName=LibsDisguises
|
||||||
|
m2e.projectLocation=C\:\\Users\\Andrew\\Documents\\eclipse\\LibsDisguises
|
||||||
|
artifactId=LibsDisguises
|
@ -0,0 +1,62 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>LibsDisguises</groupId>
|
||||||
|
<artifactId>LibsDisguises</artifactId>
|
||||||
|
<version>v1.0</version>
|
||||||
|
<build>
|
||||||
|
<sourceDirectory>src</sourceDirectory>
|
||||||
|
<defaultGoal>clean package</defaultGoal>
|
||||||
|
<directory>target</directory>
|
||||||
|
<finalName>LibsDisguises</finalName>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>2.3.2</version>
|
||||||
|
<configuration>
|
||||||
|
<source>1.6</source>
|
||||||
|
<target>1.6</target>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<targetPath>.</targetPath>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
<directory>${project.basedir}</directory>
|
||||||
|
<includes>
|
||||||
|
<include>plugin.yml</include>
|
||||||
|
<include>README.md</include>
|
||||||
|
</includes>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</build>
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>comphenix-rep</id>
|
||||||
|
<name>Comphenix Repository</name>
|
||||||
|
<url>http://repo.comphenix.net/content/groups/public</url>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>bukkit-repo</id>
|
||||||
|
<url>http://repo.bukkit.org/content/groups/public</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.comphenix.protocol</groupId>
|
||||||
|
<artifactId>ProtocolLib</artifactId>
|
||||||
|
<version>2.4.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.bukkit</groupId>
|
||||||
|
<artifactId>craftbukkit</artifactId>
|
||||||
|
<version>1.5.2-R0.1-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user