@@ -77,8 +77,8 @@
|
||||
@Override
|
||||
public boolean mayPlace(ItemStack itemstack) {
|
||||
return itemstack.getItem() instanceof ItemBannerPattern;
|
||||
@@ -128,10 +164,12 @@
|
||||
|
||||
@@ -116,10 +152,12 @@
|
||||
this.addStandardInventorySlots(playerinventory, 8, 84);
|
||||
this.addDataSlot(this.selectedBannerPatternIndex);
|
||||
this.patternGetter = playerinventory.player.registryAccess().lookupOrThrow(Registries.BANNER_PATTERN);
|
||||
+ player = (Player) playerinventory.player.getBukkitEntity(); // CraftBukkit
|
||||
@@ -90,7 +90,7 @@
|
||||
return stillValid(this.access, entityhuman, Blocks.LOOM);
|
||||
}
|
||||
|
||||
@@ -306,6 +344,11 @@
|
||||
@@ -294,6 +332,11 @@
|
||||
EnumColor enumcolor = ((ItemDye) itemstack1.getItem()).getDyeColor();
|
||||
|
||||
itemstack2.update(DataComponents.BANNER_PATTERNS, BannerPatternLayers.EMPTY, (bannerpatternlayers) -> {
|
||||
|
||||
Reference in New Issue
Block a user