mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-05-17 23:38:44 +02:00
27 lines
801 B
Java
27 lines
801 B
Java
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;
|
|
import shadows.fastbench.gui.ContainerFastBench;
|
|
import shadows.fastbench.gui.GuiFastBench;
|
|
|
|
public class CompatFastBench {
|
|
|
|
public static Container getFastBenchContainer(EntityPlayer p, World world, int x, int y, int z) {
|
|
return new ContainerFastBench(p, world, x, y, z) {
|
|
@Override
|
|
public boolean canInteractWith(EntityPlayer playerIn) {
|
|
return true;
|
|
}
|
|
};
|
|
}
|
|
|
|
public static Gui getFastBenchGui(EntityPlayer p, World world, int x, int y, int z) {
|
|
return new GuiFastBench(p.inventory, world, new BlockPos(x, y, z));
|
|
}
|
|
|
|
}
|