Skip to main content

Bukkit API

The Bukkit API is the foundational Minecraft server API that Paper builds upon. It provides comprehensive access to server functionality, game mechanics, and player interactions.

Core Classes

Server Access

org.bukkit.Bukkit

The main entry point for accessing server functionality:

org.bukkit.Server

Represents the server itself:

Player Management

org.bukkit.entity.Player

Represents a connected player:

World Management

org.bukkit.World

Represents a game world:

org.bukkit.Chunk

Represents a 16x16 chunk:

Commands

org.bukkit.command.Command

Base class for commands:

org.bukkit.command.CommandSender

Represents any command executor:

Configuration

org.bukkit.configuration.file.FileConfiguration

YAML configuration management:

Scheduler

org.bukkit.scheduler.BukkitScheduler

Task scheduling and async operations:
Never access the Bukkit API from asynchronous tasks! Use runTask() to switch back to the main thread.

Inventory API

org.bukkit.inventory.Inventory

Inventory management:

Permissions

org.bukkit.permissions.Permission

Permission system:

Utilities

Location

Material

Next Steps

Paper API

Explore Paper-specific enhancements

Events

Work with the event system

Adventure API

Modern text components

Plugin Development

Build your first plugin