2018-03-07 03:08:25 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.util.compat;
|
|
|
|
|
|
|
|
import net.minecraft.client.gui.Gui;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.inventory.Container;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
import net.minecraft.world.World;
|
2018-03-17 00:07:15 +01:00
|
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
2018-03-07 03:08:25 +01:00
|
|
|
import shadows.fastbench.gui.ContainerFastBench;
|
|
|
|
import shadows.fastbench.gui.GuiFastBench;
|
|
|
|
|
|
|
|
public class CompatFastBench {
|
|
|
|
|
2019-02-27 19:53:05 +01:00
|
|
|
public static Container getFastBenchContainer(EntityPlayer p, World world) {
|
|
|
|
return new ContainerFastBench(p, world, BlockPos.ORIGIN) {
|
|
|
|
@Override
|
|
|
|
public boolean canInteractWith(EntityPlayer playerIn) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
2018-03-07 03:08:25 +01:00
|
|
|
|
2019-02-27 19:53:05 +01:00
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public static Gui getFastBenchGui(EntityPlayer p, World world) {
|
|
|
|
return new GuiFastBench(p.inventory, world, BlockPos.ORIGIN);
|
|
|
|
}
|
2018-03-07 03:08:25 +01:00
|
|
|
|
|
|
|
}
|