Skip to content

Commit

Permalink
fix(inventory): add generic type parameters to MinecraftScheduler
Browse files Browse the repository at this point in the history
- Import Chunk, Location, and World classes from org.bukkit package
- Change the type of minecraftScheduler field to MinecraftScheduler<Plugin, Location, World, Chunk>
  • Loading branch information
GeorgeV220 committed Jan 5, 2024
1 parent 6ae2e38 commit cf0161b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import com.georgev22.library.minecraft.scheduler.MinecraftBukkitScheduler;
import com.georgev22.library.minecraft.scheduler.MinecraftFoliaScheduler;
import com.georgev22.library.minecraft.scheduler.MinecraftScheduler;
import org.bukkit.Chunk;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
Expand All @@ -24,7 +27,7 @@ class PagedInventoryListener implements Listener {
private final Plugin plugin;
private final InventoryRegistrar registrar;

private final MinecraftScheduler minecraftScheduler;
private final MinecraftScheduler<Plugin, Location, World, Chunk> minecraftScheduler;

public PagedInventoryListener(Plugin plugin, InventoryRegistrar registrar) {
this.plugin = plugin;
Expand Down

0 comments on commit cf0161b

Please sign in to comment.