convert BlockState to BlockData

This commit is contained in:
Miles Holder 2024-10-04 23:05:21 -05:00
parent c2413cc6a1
commit fdc35330f2
No known key found for this signature in database
GPG key ID: B9CBACC92C5C094C

View file

@ -4,7 +4,7 @@ import org.bukkit.Bukkit;
import org.bukkit.Keyed;
import org.bukkit.NamespacedKey;
import org.bukkit.Registry;
import org.bukkit.block.BlockState;
import org.bukkit.block.data.BlockData;
import org.jetbrains.annotations.NotNull;
/**
@ -97,10 +97,10 @@ public interface PoiType extends Keyed {
* Determines whether or not the provided BlockState is relevant to this
* point of interest.
*
* @param state the BlockState to check
* @param data the BlockData to check
* @return true if the BlockState is relevant, otherwise false
*/
boolean is(@NotNull final BlockState state);
boolean is(@NotNull final BlockData data);
@NotNull
private static PoiType get(@NotNull final String key) {