diff --git a/paper-api/src/main/java/org/bukkit/Chunk.java b/paper-api/src/main/java/org/bukkit/Chunk.java index 06737962b8..15478355e0 100644 --- a/paper-api/src/main/java/org/bukkit/Chunk.java +++ b/paper-api/src/main/java/org/bukkit/Chunk.java @@ -212,7 +212,8 @@ public interface Chunk extends PersistentDataHolder { /** * Gets the amount of time in ticks that this chunk has been inhabited. * - * Note that the time is incremented once per tick per player in the chunk. + * Note that the time is incremented once per tick per player within mob + * spawning distance of this chunk. * * @return inhabited time */ diff --git a/paper-api/src/main/java/org/bukkit/Effect.java b/paper-api/src/main/java/org/bukkit/Effect.java index cf6b94a52d..bf752c5a71 100644 --- a/paper-api/src/main/java/org/bukkit/Effect.java +++ b/paper-api/src/main/java/org/bukkit/Effect.java @@ -230,11 +230,11 @@ public enum Effect { */ POINTED_DRIPSTONE_LAND(1045, Type.SOUND), /** - * The sound played when a pointed driptone drips lava into a cauldron. + * The sound played when a pointed dripstone drips lava into a cauldron. */ POINTED_DRIPSTONE_DRIP_LAVA_INTO_CAULDRON(1046, Type.SOUND), /** - * The sound played when a pointed driptone drips water into a cauldron. + * The sound played when a pointed dripstone drips water into a cauldron. */ POINTED_DRIPSTONE_DRIP_WATER_INTO_CAULDRON(1047, Type.SOUND), /** @@ -267,7 +267,7 @@ public enum Effect { /** * The particles shown when a dripstone drips lava or water. * - * This effect requires a driptone at the location as well as lava or water + * This effect requires a dripstone at the location as well as lava or water * at the root of the dripstone. */ DRIPPING_DRIPSTONE(1504, Type.VISUAL), @@ -283,11 +283,11 @@ public enum Effect { */ ENDER_DRAGON_DESTROY_BLOCK(2008, Type.VISUAL), /** - * The particles shown when a sponge drys in an ultra warm world (nether). + * The particles shown when a sponge dries in an ultra warm world (nether). */ SPONGE_DRY(2009, Type.VISUAL), /** - * The particles shown when a lightning hits a lightning rod or oxidised + * The particles shown when a lightning hits a lightning rod or oxidized * copper. * * Data is the axis at which the particle should be shown. If no data is @@ -303,7 +303,7 @@ public enum Effect { */ COPPER_WAX_OFF(3004, Type.VISUAL), /** - * The particles shown when oxidisation is scraped of an oxidised copper + * The particles shown when oxidation is scraped of an oxidized copper * block. */ OXIDISED_COPPER_SCRAPE(3005, Type.VISUAL), diff --git a/paper-api/src/main/java/org/bukkit/Fluid.java b/paper-api/src/main/java/org/bukkit/Fluid.java index 525ede4213..4cc974689a 100644 --- a/paper-api/src/main/java/org/bukkit/Fluid.java +++ b/paper-api/src/main/java/org/bukkit/Fluid.java @@ -3,11 +3,26 @@ package org.bukkit; import java.util.Locale; import org.jetbrains.annotations.NotNull; +/** + * Represents a fluid type. + */ public enum Fluid implements Keyed { + /** + * Stationary water. + */ WATER, + /** + * Flowing water. + */ FLOWING_WATER, + /** + * Stationary lava. + */ LAVA, + /** + * Flowing lava. + */ FLOWING_LAVA; private final NamespacedKey key; diff --git a/paper-api/src/main/java/org/bukkit/Material.java b/paper-api/src/main/java/org/bukkit/Material.java index 8314acc3ca..47d14a334c 100644 --- a/paper-api/src/main/java/org/bukkit/Material.java +++ b/paper-api/src/main/java/org/bukkit/Material.java @@ -9,6 +9,7 @@ import java.util.Map; import java.util.function.Consumer; import org.bukkit.attribute.Attribute; import org.bukkit.attribute.AttributeModifier; +import org.bukkit.block.Block; import org.bukkit.block.data.Ageable; import org.bukkit.block.data.AnaloguePowerable; import org.bukkit.block.data.Bisected; @@ -7334,9 +7335,22 @@ public enum Material implements Keyed { } /** - * Check if the material is a block and completely blocks vision + * Check if the material is a block and occludes light in the lighting engine. + *
+ * Generally speaking, most full blocks will occlude light. Non-full blocks are + * not occluding (e.g. anvils, chests, tall grass, stairs, etc.), nor are specific + * full blocks such as barriers or spawners which block light despite their texture. + *
+ * An occluding block will have the following effects: + *
+ * If this item is empty and the armor stand item is also empty, there will be no + * transaction between the player and the armor stand. If the player's item is empty + * but the armor stand item is not, the player's item will be placed on the armor + * stand. If both items are not empty, the items will be swapped. + *
+ * In the case that this event is cancelled, the original items will remain the same. * @return the item held by the player. */ @NotNull @@ -41,10 +44,14 @@ public class PlayerArmorStandManipulateEvent extends PlayerInteractEntityEvent { /** * Returns the item held by the armor stand. - * If this Item is null and the player's Item is also null, there will be no transaction between the player and the armor stand. - * If the Player's item is null, but the armor stand item is not then the player will obtain the armor stand item. - * In the case that the Player's item is not null, but the armor stand item is null, the players item will be placed on the armor stand. - * If both items are not null, the items will be swapped. + *
+ * If this item is empty and the player's item is also empty, there will be no + * transaction between the player and the armor stand. If the player's item is empty + * but the armor stand item is not, then the player will obtain the armor stand item. + * In the case that the player's item is not empty but the armor stand item is empty, + * the player's item will be placed on the armor stand. If both items are not empty, + * the items will be swapped. + *
* In the case that the event is cancelled the original items will remain the same. * @return the item held by the armor stand. */ diff --git a/paper-api/src/main/java/org/bukkit/util/StructureSearchResult.java b/paper-api/src/main/java/org/bukkit/util/StructureSearchResult.java index 81833d3b82..129c14ef4a 100644 --- a/paper-api/src/main/java/org/bukkit/util/StructureSearchResult.java +++ b/paper-api/src/main/java/org/bukkit/util/StructureSearchResult.java @@ -20,7 +20,7 @@ public interface StructureSearchResult { * @return the found structure. */ @NotNull - Structure getStructure(); + Structure getStructure(); /** * Return the location of the structure.