File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/java/de/ntcomputer/minecraft/controllablemobs/api/ai Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11package de .ntcomputer .minecraft .controllablemobs .api .ai ;
22
33import java .util .HashMap ;
4+ import java .util .Map ;
45
56import net .minecraft .server .v1_6_R3 .PathfinderGoal ;
67import 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
You can’t perform that action at this time.
0 commit comments