mirror of
https://github.com/PaperMC/Paper.git
synced 2025-05-19 05:30:23 -07:00
[ci skip] Some javadoc fixes
This commit is contained in:
parent
df429932ca
commit
a820bdaeb9
@ -1,6 +1,7 @@
|
||||
package io.papermc.paper.datacomponent.item;
|
||||
|
||||
import io.papermc.paper.datacomponent.DataComponentBuilder;
|
||||
import io.papermc.paper.datacomponent.DataComponentTypes;
|
||||
import io.papermc.paper.registry.set.RegistryKeySet;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
@ -15,7 +16,7 @@ import org.jspecify.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Controls the behavior of the item as a tool.
|
||||
* @see io.papermc.paper.datacomponent.DataComponentTypes#TOOL
|
||||
* @see DataComponentTypes#TOOL
|
||||
*/
|
||||
@NullMarked
|
||||
@ApiStatus.Experimental
|
||||
@ -92,8 +93,6 @@ public interface Tool {
|
||||
|
||||
/**
|
||||
* Overrides the mining speed if present and matched.
|
||||
* <p>
|
||||
* {@code true} will cause the block to mine at its most efficient speed, and drop items if the targeted block requires that.
|
||||
*
|
||||
* @return speed override
|
||||
*/
|
||||
@ -101,6 +100,8 @@ public interface Tool {
|
||||
|
||||
/**
|
||||
* Overrides whether this tool is considered 'correct' if present and matched.
|
||||
* <p>
|
||||
* {@code true} will cause the block to mine at its most efficient speed, and drop items if the targeted block requires that.
|
||||
*
|
||||
* @return a tri-state
|
||||
*/
|
||||
|
@ -165,7 +165,7 @@ public interface AbstractArrow extends Projectile {
|
||||
* Sets the ItemStack which will be picked up from this arrow.
|
||||
*
|
||||
* @param item ItemStack set to be picked up
|
||||
* @deprecated use {@link #getItemStack()}
|
||||
* @deprecated use {@link #setItemStack(ItemStack)}
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@Deprecated(forRemoval = true, since = "1.20.4") // Paper
|
||||
|
@ -1048,7 +1048,7 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||
/**
|
||||
* Check if entity is in water or rain
|
||||
*
|
||||
* @deprecated use {@link #isInWater()}} and {@link #isInRain()}
|
||||
* @deprecated use {@link #isInWater()} and {@link #isInRain()}
|
||||
*/
|
||||
@Deprecated(since = "1.21.5")
|
||||
default boolean isInWaterOrRain() {
|
||||
@ -1068,7 +1068,7 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||
/**
|
||||
* Check if entity is in water or rain or bubble column
|
||||
*
|
||||
* @deprecated use {@link #isInWaterOrRain()}, bubble column is considered as water
|
||||
* @deprecated bubble column is considered as water, use {@link #isInWater()} and {@link #isInRain()}
|
||||
*/
|
||||
@Deprecated(since = "1.21.5")
|
||||
default boolean isInWaterOrRainOrBubbleColumn() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user