Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion paper-api/src/main/java/org/bukkit/Material.java
Original file line number Diff line number Diff line change
Expand Up @@ -5706,8 +5706,9 @@ public String getItemTranslationKey() {
*
* @param world the world to check
* @return true if this material can be used in this World.
* @deprecated use {@link io.papermc.paper.world.flag.FeatureFlagSetHolder#isEnabled(io.papermc.paper.world.flag.FeatureDependant)}
*/
@Deprecated(forRemoval = true, since = "1.20") // Paper
@Deprecated(forRemoval = true, since = "1.20")
public boolean isEnabledByFeature(@NotNull World world) {
if (isItem()) {
return Bukkit.getDataPackManager().isEnabledByFeature(asItemType(), world);
Expand Down
4 changes: 2 additions & 2 deletions paper-api/src/main/java/org/bukkit/block/BlockType.java
Original file line number Diff line number Diff line change
Expand Up @@ -3551,7 +3551,7 @@ private static <B extends BlockType> B getBlockType(@NotNull String key) {
* state as well. This method will return true if there is at least one
* state in which additional interact handling is performed for the
* block type.
*
*
* @deprecated This method is not comprehensive and does not accurately reflect what block types are
* interactable. Many "interactions" are defined on the item not block, and many are conditional on some other world state
* checks being true.
Expand Down Expand Up @@ -3604,7 +3604,7 @@ private static <B extends BlockType> B getBlockType(@NotNull String key) {
*
* @param world the world to check
* @return true if this BlockType can be used in this World.
* @deprecated Use {@link io.papermc.paper.world.flag.FeatureFlagSetHolder#isEnabled(io.papermc.paper.world.flag.FeatureDependant)}
* @deprecated use {@link io.papermc.paper.world.flag.FeatureFlagSetHolder#isEnabled(io.papermc.paper.world.flag.FeatureDependant)}
*/
@Deprecated(forRemoval = true, since = "1.21.1") // Paper
boolean isEnabledByFeature(@NotNull World world);
Expand Down
3 changes: 2 additions & 1 deletion paper-api/src/main/java/org/bukkit/entity/EntityType.java
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,9 @@ public boolean hasDefaultAttributes() {
*
* @param world the world to check
* @return true if this EntityType can be used to spawn an Entity for this World.
* @deprecated use {@link io.papermc.paper.world.flag.FeatureFlagSetHolder#isEnabled(io.papermc.paper.world.flag.FeatureDependant)}
*/
@Deprecated(forRemoval = true, since = "1.20") // Paper
@Deprecated(forRemoval = true, since = "1.20")
public boolean isEnabledByFeature(@NotNull World world) {
return Bukkit.getDataPackManager().isEnabledByFeature(this, world);
}
Expand Down