/* * This file is part of Project-Zed. Project-Zed is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. Project-Zed is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should * have received a copy of the GNU General Public License along with Project-Zed. If not, see <http://www.gnu * .org/licenses/> */ package com.projectzed.mod.tileentity.generator; import com.projectzed.api.tileentity.generator.AbstractTileEntityGenerator; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumFacing; /** * Abstract TileEntity class for kinetic based generation. * * @author hockeyhurd * @version 4/17/2016. */ public abstract class AbstractTileEntityKineticGenerator extends AbstractTileEntityGenerator { /** * @param name String name. */ public AbstractTileEntityKineticGenerator(String name) { super(name); } @Override public int getSizeInventory() { return 0; } @Override public int getInventoryStackLimit() { return 0; } @Override protected void initContentsArray() { slots = new ItemStack[0]; } @Override protected void initSlotsArray() { } @Override public boolean isItemValidForSlot(int slot, ItemStack stack) { return false; } @Override public int[] getSlotsForFace(EnumFacing side) { return new int[0]; } @Override public boolean canInsertItem(int slot, ItemStack stack, EnumFacing side) { return false; } @Override public boolean canExtractItem(int slot, ItemStack stack, EnumFacing side) { return false; } }