Easily create fake inventories that players can interact with.
public void onEnable() {
RegisteredServiceProvider<FakeInventories> provider = getServer().getServiceManager().getProvider(FakeInventories.class);
if (provider == null || provider.getProvider() == null) {
this.getServer().getPluginManager().disablePlugin(this);
}
...
}
<repositories>
<repository>
<id>nukkitx-repo</id>
<url>https://repo.nukkitx.com/snapshot/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.nukkitx</groupId>
<artifactId>fakeinventories</artifactId>
<version>1.0.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
- Add Hopper inventory