Update patches to latest 1.21.4 #1
@ -5706,8 +5706,9 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla
|
|||||||
*
|
*
|
||||||
* @param world the world to check
|
* @param world the world to check
|
||||||
* @return true if this material can be used in this World.
|
* @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) {
|
public boolean isEnabledByFeature(@NotNull World world) {
|
||||||
if (isItem()) {
|
if (isItem()) {
|
||||||
return Bukkit.getDataPackManager().isEnabledByFeature(asItemType(), world);
|
return Bukkit.getDataPackManager().isEnabledByFeature(asItemType(), world);
|
||||||
|
|||||||
@ -3551,7 +3551,7 @@ public interface BlockType extends Keyed, Translatable, net.kyori.adventure.tran
|
|||||||
* state as well. This method will return true if there is at least one
|
* state as well. This method will return true if there is at least one
|
||||||
* state in which additional interact handling is performed for the
|
* state in which additional interact handling is performed for the
|
||||||
* block type.
|
* block type.
|
||||||
*
|
*
|
||||||
* @deprecated This method is not comprehensive and does not accurately reflect what block types are
|
* @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
|
* interactable. Many "interactions" are defined on the item not block, and many are conditional on some other world state
|
||||||
* checks being true.
|
* checks being true.
|
||||||
@ -3604,7 +3604,7 @@ public interface BlockType extends Keyed, Translatable, net.kyori.adventure.tran
|
|||||||
*
|
*
|
||||||
* @param world the world to check
|
* @param world the world to check
|
||||||
* @return true if this BlockType can be used in this World.
|
* @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
|
@Deprecated(forRemoval = true, since = "1.21.1") // Paper
|
||||||
boolean isEnabledByFeature(@NotNull World world);
|
boolean isEnabledByFeature(@NotNull World world);
|
||||||
|
|||||||
@ -503,8 +503,9 @@ public enum EntityType implements Keyed, Translatable, net.kyori.adventure.trans
|
|||||||
*
|
*
|
||||||
* @param world the world to check
|
* @param world the world to check
|
||||||
* @return true if this EntityType can be used to spawn an Entity for this World.
|
* @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) {
|
public boolean isEnabledByFeature(@NotNull World world) {
|
||||||
return Bukkit.getDataPackManager().isEnabledByFeature(this, world);
|
return Bukkit.getDataPackManager().isEnabledByFeature(this, world);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user