mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-22 15:47:57 -05:00
Fix the javadocs of object-builders as the method was moved from material to block. (#892)
Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
parent
3b4b2c130e
commit
ba4afa57ac
4 changed files with 11 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
archivesBaseName = "fabric-object-builder-api-v1"
|
||||
version = getSubprojectVersion(project, "1.5.5")
|
||||
version = getSubprojectVersion(project, "1.5.6")
|
||||
|
||||
dependencies {
|
||||
compile project(path: ':fabric-api-base', configuration: 'dev')
|
||||
|
|
|
@ -244,7 +244,7 @@ public class FabricBlockSettings extends AbstractBlock.Settings {
|
|||
}
|
||||
|
||||
/**
|
||||
* Make the material require tool to drop and slows down mining speed if the incorrect tool is used.
|
||||
* Make the block require tool to drop and slows down mining speed if the incorrect tool is used.
|
||||
*/
|
||||
@Override
|
||||
public FabricBlockSettings requiresTool() {
|
||||
|
@ -279,8 +279,8 @@ public class FabricBlockSettings extends AbstractBlock.Settings {
|
|||
}
|
||||
|
||||
/**
|
||||
* Please make the material require a tool if you plan to disable drops and slow the breaking down using the
|
||||
* incorrect tool by using {@link FabricMaterialBuilder#requiresTool()}.
|
||||
* Please make the block require a tool if you plan to disable drops and slow the breaking down using the
|
||||
* incorrect tool by using {@link FabricBlockSettings#requiresTool()}.
|
||||
*/
|
||||
public FabricBlockSettings breakByTool(Tag<Item> tag, int miningLevel) {
|
||||
FabricBlockInternals.computeExtraData(this).addMiningLevel(tag, miningLevel);
|
||||
|
@ -288,8 +288,8 @@ public class FabricBlockSettings extends AbstractBlock.Settings {
|
|||
}
|
||||
|
||||
/**
|
||||
* Please make the material require a tool if you plan to disable drops and slow the breaking down using the
|
||||
* incorrect tool by using {@link FabricMaterialBuilder#requiresTool()}.
|
||||
* Please make the block require a tool if you plan to disable drops and slow the breaking down using the
|
||||
* incorrect tool by using {@link FabricBlockSettings#requiresTool()}.
|
||||
*/
|
||||
public FabricBlockSettings breakByTool(Tag<Item> tag) {
|
||||
return this.breakByTool(tag, 0);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
archivesBaseName = "fabric-object-builders"
|
||||
version = getSubprojectVersion(project, "0.6.0")
|
||||
version = getSubprojectVersion(project, "0.6.1")
|
||||
|
||||
dependencies {
|
||||
compile project(path: ':fabric-api-base', configuration: 'dev')
|
||||
|
|
|
@ -77,8 +77,8 @@ public class FabricBlockSettings {
|
|||
}
|
||||
|
||||
/**
|
||||
* Please make the material require a tool if you plan to disable drops and slow the breaking down using the
|
||||
* incorrect tool by using {@link net.fabricmc.fabric.api.object.builder.v1.block.FabricMaterialBuilder#requiresTool()}.
|
||||
* Please make the block require a tool if you plan to disable drops and slow the breaking down using the
|
||||
* incorrect tool by using {@link net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings#requiresTool()}.
|
||||
*/
|
||||
public FabricBlockSettings breakByTool(Tag<Item> tag, int miningLevel) {
|
||||
this.delegate.breakByTool(tag, miningLevel);
|
||||
|
@ -86,8 +86,8 @@ public class FabricBlockSettings {
|
|||
}
|
||||
|
||||
/**
|
||||
* Please make the material require a tool if you plan to disable drops and slow the breaking down using the
|
||||
* incorrect tool by using {@link net.fabricmc.fabric.api.object.builder.v1.block.FabricMaterialBuilder#requiresTool()}.
|
||||
* Please make the block require a tool if you plan to disable drops and slow the breaking down using the
|
||||
* incorrect tool by using {@link net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings#requiresTool()}.
|
||||
*/
|
||||
public FabricBlockSettings breakByTool(Tag<Item> tag) {
|
||||
this.delegate.breakByTool(tag);
|
||||
|
|
Loading…
Reference in a new issue