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

Method getPathBase

src/main/java/net/optifine/RandomEntities.java:322–325  ·  view source on GitHub ↗
(String pathRandom)

Source from the content-addressed store, hash-verified

320 }
321
322 private static String getPathBase(String pathRandom)
323 {
324 return pathRandom.startsWith("optifine/random/") ? StrUtils.replacePrefix(pathRandom, "optifine/random/", "textures/") : (pathRandom.startsWith("mcpatcher/mob/") ? StrUtils.replacePrefix(pathRandom, "mcpatcher/mob/", "textures/entity/") : null);
325 }
326
327 protected static ResourceLocation getLocationIndexed(ResourceLocation loc, int index)
328 {

Callers 1

initializeMethod · 0.95

Calls 2

replacePrefixMethod · 0.95
startsWithMethod · 0.80

Tested by

no test coverage detected