Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.ArrayList;
- import java.util.Random;
- import net.minecraft.src.forge.*;
- public class BlockFluidBed extends Block implements ITextureProvider{
- protected BlockFluidBed(int id, int imgSlot, Material material) {
- super(id, imgSlot, material);
- }
- public int getBlockTextureFromSideAndMetadata(int side, int meta){
- switch(side){
- default:
- return 81;
- case 0:
- return 80;
- case 1:
- return 82;
- }
- }
- public int getBlockTextureFromSide(int side){
- switch(side){
- default:
- return this.blockIndexInTexture+1;
- case 0:
- return this.blockIndexInTexture;
- case 1:
- return this.blockIndexInTexture+2;
- }
- }
- public void setBlockBoundsForItemRender(){
- this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.25F, 1.0F);
- }
- public void getCollidingBoundingBoxes(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, ArrayList par6ArrayList)
- {
- this.setBlockBoundsBasedOnState(par1World, par2, par3, par4);
- super.getCollidingBoundingBoxes(par1World, par2, par3, par4, par5AxisAlignedBB, par6ArrayList);
- }
- public boolean isOpaqueCube(){
- return false;
- }
- public int getRenderType(){
- return mod_cutter.fluidBedRenderID;
- }
- @Override
- public String getTextureFile() {
- return "/cutter/Blocks.png";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement