mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-26 09:38:08 -05:00
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
This commit is contained in:
parent
3234627dd4
commit
43ae9fbacb
1 changed files with 9 additions and 9 deletions
|
@ -243,6 +243,15 @@ public class FabricBlockSettings extends AbstractBlock.Settings {
|
||||||
return this;
|
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 */
|
/* FABRIC DELEGATE WRAPPERS */
|
||||||
|
|
||||||
public FabricBlockSettings materialColor(MaterialColor color) {
|
public FabricBlockSettings materialColor(MaterialColor color) {
|
||||||
|
@ -285,13 +294,4 @@ public class FabricBlockSettings extends AbstractBlock.Settings {
|
||||||
public FabricBlockSettings breakByTool(Tag<Item> tag) {
|
public FabricBlockSettings breakByTool(Tag<Item> tag) {
|
||||||
return this.breakByTool(tag, 0);
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue