Skip to content

Commit

Permalink
Merge pull request #23 from NOVA-Team/decouple/categories
Browse files Browse the repository at this point in the history
Decouple Categories from Minecraft
  • Loading branch information
RX14 authored Jan 18, 2017
2 parents 19bb701 + a335ba7 commit 1fcd901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/Mod Development/Blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class BlockStateless extends Block implements Syncable {
components.add(new StaticRenderer().onRender(new BlockRenderPipeline(this).withTexture(NovaBlock.steelTexture).build()));
components.add(new Collider());
components.add(new ItemRenderer(this)); // TODO: Deprecated
components.add(new Category("buildingBlocks"));
components.add(Category.BUILDING_BLOCKS);

events.on(RightClickEvent.class).bind(this::onRightClick);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/Mod Development/Items.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The code above registers an item class called `ItemScrewdriver`. `ItemScrewdrive
public class ItemScrewdriver extends Item {

public ItemScrewdriver() {
components.add(new Category("tools"));
components.add(Category.TOOLS);
components.add(new ItemRenderer()).setTexture(NovaItem.screwTexture); // TODO: Deprecated

events.on(UseEvent.class).bind(event -> event.action = true);
Expand Down

0 comments on commit 1fcd901

Please sign in to comment.