2626import org .bukkit .entity .Entity ;
2727import org .bukkit .inventory .Inventory ;
2828import org .bukkit .inventory .InventoryHolder ;
29- import org .jetbrains .annotations .NotNull ;
30- import org .jetbrains .annotations .Nullable ;
3129
3230import javax .annotation .Nonnull ;
31+ import javax .annotation .Nullable ;
3332import java .util .concurrent .CompletableFuture ;
3433
3534/**
3635 * This class is mainly here to replace PaperLib, as it no longer fully functions on MC 26.1+.
3736 */
3837public class PaperInterop {
38+ private PaperInterop () {
39+ }
3940
4041 public static @ Nullable InventoryHolder getHolder (@ Nonnull Inventory inventory , boolean useSnapshot ) {
4142 if (PaperLib .isPaper ()) {
@@ -45,15 +46,15 @@ public class PaperInterop {
4546 return inventory .getHolder ();
4647 }
4748
48- public static @ NotNull BlockState getBlockState (@ Nonnull Block block , boolean useSnapshot ) {
49+ public static BlockState getBlockState (@ Nonnull Block block , boolean useSnapshot ) {
4950 if (PaperLib .isPaper ()) {
5051 return block .getState (useSnapshot );
5152 }
5253
5354 return block .getState ();
5455 }
5556
56- public static @ NotNull CompletableFuture <Boolean > teleportAsync (@ Nonnull Entity entity , @ Nonnull Location location ) {
57+ public static CompletableFuture <Boolean > teleportAsync (@ Nonnull Entity entity , @ Nonnull Location location ) {
5758 if (PaperLib .isPaper ()) {
5859 return entity .teleportAsync (location );
5960 }
0 commit comments