MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getTextureEntity

Method getTextureEntity

src/main/java/net/optifine/CustomGuis.java:181–203  ·  view source on GitHub ↗
(CustomGuiProperties.EnumContainer container, Entity entity, IBlockAccess blockAccess, ResourceLocation loc)

Source from the content-addressed store, hash-verified

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 {

Callers 1

getTextureLocationMethod · 0.95

Calls 2

matchesEntityMethod · 0.95
getTextureLocationMethod · 0.95

Tested by

no test coverage detected