From 43ae9fbacbed679c7af1da0d5f2415ffd57e415d Mon Sep 17 00:00:00 2001 From: i509VCB Date: Sun, 21 Jun 2020 05:31:36 -0700 Subject: [PATCH] Move new method in FabricBlockSettings to correct place in class. (#668) The lower methods in the class are commented with their categories: `FABRIC DELEGATE WRAPPERS` for additional methods to allow editing fields not actually exposed in vanilla. `FABRIC HELPERS` for methods to handle things like mining levels. Per these two categories, the new method does not belong in `FABRIC HELPERS` and has been moved accordingly --- .../builder/v1/block/FabricBlockSettings.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/block/FabricBlockSettings.java b/fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/block/FabricBlockSettings.java index aa86cf9b6..3cadebc10 100644 --- a/fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/block/FabricBlockSettings.java +++ b/fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/block/FabricBlockSettings.java @@ -243,6 +243,15 @@ public class FabricBlockSettings extends AbstractBlock.Settings { return this; } + /** + * Make the material require tool to drop and slows down mining speed if the incorrect tool is used. + */ + @Override + public FabricBlockSettings requiresTool() { + super.requiresTool(); + return this; + } + /* FABRIC DELEGATE WRAPPERS */ public FabricBlockSettings materialColor(MaterialColor color) { @@ -285,13 +294,4 @@ public class FabricBlockSettings extends AbstractBlock.Settings { public FabricBlockSettings breakByTool(Tag tag) { return this.breakByTool(tag, 0); } - - /** - * Make the material require tool to drop and slows down mining speed if the incorrect tool is used. - */ - @Override - public FabricBlockSettings requiresTool() { - super.requiresTool(); - return this; - } }