fixed some machine drops
This commit is contained in:
parent
42015809a3
commit
123e704caf
3 changed files with 29 additions and 2 deletions
|
@ -1,7 +1,14 @@
|
||||||
package techreborn.blocks.generator;
|
package techreborn.blocks.generator;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import reborncore.common.blocks.BlockMachineBase;
|
import reborncore.common.blocks.BlockMachineBase;
|
||||||
import reborncore.common.blocks.IRotationTexture;
|
import reborncore.common.blocks.IRotationTexture;
|
||||||
|
@ -31,6 +38,13 @@ public class BlockGenerator extends BlockMachineBase implements IRotationTexture
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
|
||||||
|
List<ItemStack> items = new ArrayList<ItemStack>();
|
||||||
|
items.add(new ItemStack(this));
|
||||||
|
return items;
|
||||||
|
}
|
||||||
|
|
||||||
private final String prefix = "techreborn:blocks/machine/generators/";
|
private final String prefix = "techreborn:blocks/machine/generators/";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
package techreborn.blocks.storage;
|
package techreborn.blocks.storage;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import reborncore.common.blocks.BlockMachineBase;
|
import reborncore.common.blocks.BlockMachineBase;
|
||||||
import reborncore.common.blocks.IRotationTexture;
|
import reborncore.common.blocks.IRotationTexture;
|
||||||
|
@ -33,6 +40,13 @@ public class BlockBatBox extends BlockMachineBase implements IRotationTexture {
|
||||||
return new TileBatBox();
|
return new TileBatBox();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
|
||||||
|
List<ItemStack> items = new ArrayList<ItemStack>();
|
||||||
|
items.add(new ItemStack(this));
|
||||||
|
return items;
|
||||||
|
}
|
||||||
|
|
||||||
protected final String prefix = "techreborn:blocks/machine/storage/";
|
protected final String prefix = "techreborn:blocks/machine/storage/";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -59,5 +73,4 @@ public class BlockBatBox extends BlockMachineBase implements IRotationTexture {
|
||||||
public String getBottom() {
|
public String getBottom() {
|
||||||
return prefix + "batbox_bottom";
|
return prefix + "batbox_bottom";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -19,7 +19,7 @@ public class TileBatBox extends TilePowerAcceptor implements IWrenchable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, EnumFacing side) {
|
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, EnumFacing side) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue