Skip to content

Commit

Permalink
Merge pull request #50 from DebuggyTeam/schema_fix
Browse files Browse the repository at this point in the history
Fix 'all' TextureConfiguration, add 'end' config
  • Loading branch information
woodiertexas authored Aug 10, 2023
2 parents 067684c + 25d7d00 commit 176792d
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,19 @@ public interface TextureConfiguration extends BiFunction<BlockType, String, Stri
return new Identifier(id.getNamespace(), "block/" + id.getPath()).toString();
}
);

static final Function<Identifier, TextureConfiguration> END = id -> create(
blockType -> new Identifier(id.getNamespace(), "block/" + id.getPath()).toString(),
blockType -> {
return new Identifier(id.getNamespace(), "block/" + id.getPath()).toString();
},
blockType -> {
return new Identifier(id.getNamespace(), "block/" + id.getPath() + "_end").toString();
},
blockType -> {
return new Identifier(id.getNamespace(), "block/" + id.getPath()).toString();
}
);

static final Function<Identifier, TextureConfiguration> TOP_BOTTOM = id -> create(
blockType -> new Identifier(id.getNamespace(), "block/" + id.getPath()).toString(),
Expand All @@ -101,7 +114,7 @@ public interface TextureConfiguration extends BiFunction<BlockType, String, Stri
}
);

static final Function<Identifier, TextureConfiguration> ALL = it -> (type, textureId) -> it.toString();
static final Function<Identifier, TextureConfiguration> ALL = it -> (type, textureId) -> new Identifier(it.getNamespace(), "block/" + it.getPath()).toString();

static TextureConfiguration create(Function<BlockType, String> base,
Function<BlockType, String> side,
Expand Down

0 comments on commit 176792d

Please sign in to comment.