public void afterPlace(GlowPlayer player, GlowBlock block, ItemStack holding) {
GlowBanner banner = (GlowBanner) block.getState();
banner.setBase(DyeColor.getByDyeData((byte) holding.getDurability()));
BannerMeta meta = (BannerMeta) holding.getItemMeta();
banner.setPattern(meta.getPattern());
banner.update();
}
public static List<CompoundTag> toNBT(BannerPattern pattern) {
List<CompoundTag> patterns = new ArrayList<>();
for (BannerPattern.BannerLayer layer : pattern.getLayers()) {