use of com.infinityraider.agricraft.container.ContainerSeedStorageBase in project AgriCraft by AgriCraft.
the class MessageGuiSeedStorageClearSeed method processMessage.
@Override
protected void processMessage(MessageContext ctx) {
final Container container = this.player.openContainer;
if (container instanceof ContainerSeedStorageBase) {
final ContainerSeedStorageBase storage = ((ContainerSeedStorageBase) container);
final TileEntity tileEntity = storage.getTile();
if (tileEntity instanceof ISeedStorageControllable) {
((ISeedStorageControllable) tileEntity).clearLockedSeed();
}
}
}
use of com.infinityraider.agricraft.container.ContainerSeedStorageBase in project AgriCraft by AgriCraft.
the class MessageContainerSeedStorage method processMessage.
@Override
protected void processMessage(MessageContext ctx) {
if (player.openContainer instanceof ContainerSeedStorageBase) {
ContainerSeedStorageBase storage = (ContainerSeedStorageBase) player.openContainer;
storage.moveStackFromTileEntityToPlayer(slotId, new ItemStack(item, amount, meta));
}
}
Aggregations