mirror of
https://github.com/GTNewHorizons/Advanced-Botany.git
synced 2026-11-24 22:04:43 +00:00
no message
This commit is contained in:
1 parent
8c1bd5995b
commit
93f114dceb
645 files changed
+59797
No files matched your search
@@ -0,0 +1,69 @@
|
||||
package ab.common.block;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.common.block.tile.TileABSpreader;
|
||||
import ab.common.block.tile.TileManaContainer;
|
||||
import ab.common.lib.register.BlockListAB;
|
||||
import ab.common.lib.register.RecipeListAB;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.ScaledResolution;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.lexicon.ILexiconable;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.wand.IWandHUD;
|
||||
import vazkii.botania.api.wand.IWandable;
|
||||
import vazkii.botania.common.block.BlockLivingrock;
|
||||
import vazkii.botania.common.block.ModBlocks;
|
||||
|
||||
public class BlockManaContainer extends BlockContainer implements IWandHUD, IWandable, ILexiconable {
|
||||
|
||||
public BlockManaContainer() {
|
||||
super(Material.iron);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 1.1875F, 0.9375F);
|
||||
this.setHardness(9.0F);
|
||||
this.setBlockName("ABManaContainer");
|
||||
}
|
||||
|
||||
public TileEntity createNewTileEntity(World world, int meta) {
|
||||
return new TileManaContainer();
|
||||
}
|
||||
|
||||
public boolean isOpaqueCube() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean renderAsNormalBlock() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public int getRenderType() {
|
||||
return BlockListAB.blockManaContainerRI;
|
||||
}
|
||||
|
||||
public IIcon getIcon(int par1, int par2) {
|
||||
return ModBlocks.livingrock.getIcon(0, 0);
|
||||
}
|
||||
|
||||
public void renderHUD(Minecraft mc, ScaledResolution res, World world, int x, int y, int z) {
|
||||
((TileManaContainer)world.getTileEntity(x, y, z)).renderHUD(mc, res);
|
||||
}
|
||||
|
||||
public boolean onUsedByWand(EntityPlayer player, ItemStack stack, World world, int x, int y, int z, int side) {
|
||||
((TileManaContainer)world.getTileEntity(x, y, z)).onWanded(player, stack);
|
||||
return true;
|
||||
}
|
||||
|
||||
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
|
||||
return RecipeListAB.manaContainer;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user