use of org.bukkit.craftbukkit.v.inventory.CraftBlockInventoryHolder in project Arclight by IzzelAliz.
the class ComposterBlock_EmptyInventoryMixin method arclight$constructor.
public void arclight$constructor(IWorld world, BlockPos blockPos) {
arclight$constructor();
this.setOwner(new CraftBlockInventoryHolder(world, blockPos, this));
}
use of org.bukkit.craftbukkit.v.inventory.CraftBlockInventoryHolder in project Arclight by IzzelAliz.
the class ComposterBlockMixin method arclight$newEmpty.
@SuppressWarnings("UnresolvedMixinReference")
@Redirect(method = "createInventory", at = @At(value = "NEW", target = "()Lnet/minecraft/block/ComposterBlock$EmptyInventory;"))
public ComposterBlock.EmptyInventory arclight$newEmpty(BlockState blockState, IWorld world, BlockPos blockPos) {
ComposterBlock.EmptyInventory inventory = new ComposterBlock.EmptyInventory();
((IInventoryBridge) inventory).setOwner(new CraftBlockInventoryHolder(world, blockPos, inventory));
return inventory;
}
Aggregations