Skip to content

Commit

Permalink
Provide better default names
Browse files Browse the repository at this point in the history
Signed-off-by: TheSilkMiner <thesilkminer@outlook.com>
  • Loading branch information
TheSilkMiner committed May 28, 2022
1 parent 98ef974 commit 1c6a453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void provideResources(final ResourceLocation name, final ResourceManager

cotAssets.provideTemplated(PathHelper.texture(textureName), ContentTweakerVanillaConstants.ITEM_TEXTURE_TEMPLATE);
cotAssets.provideFixed(PathHelper.itemModel(name), ItemModel.ofGenerated().layer(0, textureName), ItemModel.SERIALIZER);
cotAssets.provideOrAlter(PathHelper.usLang(), Language::of, it -> it.item(name, "Example Item"), Language.SERIALIZER);
cotAssets.provideOrAlter(PathHelper.usLang(), Language::of, it -> it.item(name, "Custom Item"), Language.SERIALIZER);
}

private Item build(final Item.Properties properties) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static CreativeModeTab of(final String name) {
final int id = expand();
final ResourceFragment assets = ResourceManager.get().fragment(StandardResourceFragmentKeys.CONTENT_TWEAKER_ASSETS);
final CreativeModeTab tab = new CustomCreativeTab(id, name, ItemReference.AIR);
assets.provideOrAlter(PathHelper.usLang(), Language::of, it -> it.tab(name, "Example Tab"), Language.SERIALIZER);
assets.provideOrAlter(PathHelper.usLang(), Language::of, it -> it.tab(name, "Custom Tab"), Language.SERIALIZER);
return tab;
}

Expand Down

0 comments on commit 1c6a453

Please sign in to comment.