Skip to content

Commit e1af913

Browse files
committed
renamed fields
1 parent 2d36852 commit e1af913

File tree

1 file changed

+5
-4
lines changed
  • src/java/de/ntcomputer/minecraft/controllablemobs/api/ai

1 file changed

+5
-4
lines changed

src/java/de/ntcomputer/minecraft/controllablemobs/api/ai/AIType.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package de.ntcomputer.minecraft.controllablemobs.api.ai;
22

33
import java.util.HashMap;
4+
import java.util.Map;
45

56
import net.minecraft.server.v1_6_R3.PathfinderGoal;
67
import net.minecraft.server.v1_6_R3.PathfinderGoalArrowAttack;
@@ -102,19 +103,19 @@ public enum AIType {
102103
ACTION_PLAYERTRADE(PathfinderGoalTradeWithPlayer.class),
103104
UNKNOWN(null);
104105

105-
private final Class<? extends PathfinderGoal> notchAIClass;
106+
private final Class<? extends PathfinderGoal> nmsPathfinderClass;
106107

107108
private AIType(Class<? extends PathfinderGoal> pfgClass) {
108-
this.notchAIClass = pfgClass;
109+
this.nmsPathfinderClass = pfgClass;
109110
}
110111

111112

112-
private static final HashMap<Class<? extends PathfinderGoal>,AIType> classTypeMap;
113+
private static final Map<Class<? extends PathfinderGoal>,AIType> classTypeMap;
113114

114115
static {
115116
classTypeMap = new HashMap<Class<? extends PathfinderGoal>,AIType>();
116117
for(AIType type: AIType.values()) {
117-
if(type!=AIType.UNKNOWN) classTypeMap.put(type.notchAIClass, type);
118+
if(type!=AIType.UNKNOWN) classTypeMap.put(type.nmsPathfinderClass, type);
118119
}
119120
}
120121

0 commit comments

Comments
 (0)