mirror of
https://github.com/songoda/EpicBuckets.git
synced 2024-09-27 13:02:54 +02:00
23 lines
519 B
Java
23 lines
519 B
Java
package com.songoda.epicbuckets.util.itemnbtapi;
|
|
|
|
import org.bukkit.block.BlockState;
|
|
|
|
public class NBTTileEntity extends NBTCompound {
|
|
|
|
private final BlockState tile;
|
|
|
|
public NBTTileEntity(BlockState tile) {
|
|
super(null, null);
|
|
this.tile = tile;
|
|
}
|
|
|
|
protected Object getCompound() {
|
|
return NBTReflectionUtil.getTileEntityNBTTagCompound(tile);
|
|
}
|
|
|
|
protected void setCompound(Object compound) {
|
|
NBTReflectionUtil.setTileEntityNBTTagCompound(tile, compound);
|
|
}
|
|
|
|
}
|