initial 20w11a

This commit is contained in:
modmuss50 2020-03-12 20:32:03 +00:00
parent dffec285b2
commit adad632549
25 changed files with 65 additions and 71 deletions

View file

@ -24,7 +24,6 @@
package techreborn.blockentity.machine.tier1;
import net.minecraft.container.Container;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.CraftingInventory;
import net.minecraft.item.ItemStack;
@ -33,6 +32,7 @@ import net.minecraft.recipe.CraftingRecipe;
import net.minecraft.recipe.Ingredient;
import net.minecraft.recipe.Recipe;
import net.minecraft.recipe.RecipeType;
import net.minecraft.screen.ScreenHandler;
import net.minecraft.sound.SoundCategory;
import net.minecraft.util.DefaultedList;
import net.minecraft.util.math.Direction;
@ -101,7 +101,7 @@ public class AutoCraftingTableBlockEntity extends PowerAcceptorBlockEntity
public CraftingInventory getCraftingInventory() {
if (inventoryCrafting == null) {
inventoryCrafting = new CraftingInventory(new Container(null, -1) {
inventoryCrafting = new CraftingInventory(new ScreenHandler(null, -1) {
@Override
public boolean canUse(PlayerEntity playerIn) {
return false;

View file

@ -24,12 +24,12 @@
package techreborn.blockentity.machine.tier1;
import net.minecraft.container.Container;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.CraftingInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.recipe.Ingredient;
import net.minecraft.screen.ScreenHandler;
import net.minecraft.util.math.Direction;
import net.minecraft.world.World;
import org.apache.commons.lang3.tuple.Pair;
@ -414,7 +414,7 @@ public class RollingMachineBlockEntity extends PowerAcceptorBlockEntity
return 0;
}
private static class RollingBEContainer extends Container {
private static class RollingBEContainer extends ScreenHandler {
protected RollingBEContainer() {
super(null, 0);