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

Method getTexturePos

src/main/java/net/optifine/CustomGuis.java:157–179  ·  view source on GitHub ↗
(CustomGuiProperties.EnumContainer container, BlockPos pos, IBlockAccess blockAccess, ResourceLocation loc, GuiScreen screen)

Source from the content-addressed store, hash-verified

155 }
156
157 private static ResourceLocation getTexturePos(CustomGuiProperties.EnumContainer container, BlockPos pos, IBlockAccess blockAccess, ResourceLocation loc, GuiScreen screen)
158 {
159 CustomGuiProperties[] acustomguiproperties = guiProperties[container.ordinal()];
160
161 if (acustomguiproperties == null)
162 {
163 return loc;
164 }
165 else
166 {
167 for (int i = 0; i < acustomguiproperties.length; ++i)
168 {
169 CustomGuiProperties customguiproperties = acustomguiproperties[i];
170
171 if (customguiproperties.matchesPos(container, pos, blockAccess, screen))
172 {
173 return customguiproperties.getTextureLocation(loc);
174 }
175 }
176
177 return loc;
178 }
179 }
180
181 private static ResourceLocation getTextureEntity(CustomGuiProperties.EnumContainer container, Entity entity, IBlockAccess blockAccess, ResourceLocation loc)
182 {

Callers 1

getTextureLocationMethod · 0.95

Calls 2

matchesPosMethod · 0.95
getTextureLocationMethod · 0.95

Tested by

no test coverage detected