(CustomGuiProperties.EnumContainer container, Entity entity, IBlockAccess blockAccess, ResourceLocation loc)
| 179 | } |
| 180 | |
| 181 | private static ResourceLocation getTextureEntity(CustomGuiProperties.EnumContainer container, Entity entity, IBlockAccess blockAccess, ResourceLocation loc) |
| 182 | { |
| 183 | CustomGuiProperties[] acustomguiproperties = guiProperties[container.ordinal()]; |
| 184 | |
| 185 | if (acustomguiproperties == null) |
| 186 | { |
| 187 | return loc; |
| 188 | } |
| 189 | else |
| 190 | { |
| 191 | for (int i = 0; i < acustomguiproperties.length; ++i) |
| 192 | { |
| 193 | CustomGuiProperties customguiproperties = acustomguiproperties[i]; |
| 194 | |
| 195 | if (customguiproperties.matchesEntity(container, entity, blockAccess)) |
| 196 | { |
| 197 | return customguiproperties.getTextureLocation(loc); |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | return loc; |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | public static void update() |
| 206 | { |
no test coverage detected