Java 类net.minecraft.block.BlockPane 实例源码

项目:fencing    文件:FenceBlock.java   
protected boolean canConnectTo(IBlockAccess blockAccess, int x, int y, int z) {
    Block block = blockAccess.getBlock(x, y, z);
    if (block == null) {
        return false;
    } else if (block.getMaterial().isOpaque()
            && block.renderAsNormalBlock()) {
        // We'll connect against full 1x1x1 blocks.
        return true;
    } else if (block instanceof FenceBlock || block instanceof BlockFence
            || block instanceof BlockPane || block instanceof BlockWall) {
        // Of course we connect to our own.
        // And to vanilla fences, iron bars, glass panes and walls.
        return true;
    }
    return false;
}
项目:Chisel    文件:VariationTopBottom.java   
@SideOnly(Side.CLIENT)
@Override
public void registerIcon(String modName, Block block_, IIconRegister register) {

    if (block != null) {
        if (block instanceof BlockPane) {
            icon = block.getBlockTextureFromSide(2);
            iconTop = ((BlockPane) block)
                    .getSideTextureIndex();
            iconBot = ((BlockPane) block)
                    .getSideTextureIndex();
        } else {
            icon = block.getIcon(2, blockMeta);
            iconTop = block.getIcon(1, blockMeta);
            iconBot = block.getIcon(0, blockMeta);
        }
    } else {
        super.registerIcon(modName, block, register);
        iconBot = getIconResource(modName + ":"
                + texture + "-bottom", register);
    }
}
项目:carpentersblocks    文件:BlockProperties.java   
/**
 * Returns whether block is a cover.
 */
public static boolean isCover(ItemStack itemStack)
{
    if (itemStack.getItem() instanceof ItemBlock && !isOverlay(itemStack)) {

        Block block = toBlock(itemStack);

        return block.renderAsNormalBlock() ||
               block instanceof BlockSlab ||
               block instanceof BlockPane ||
               block instanceof BlockBreakable ||
               FeatureRegistry.coverExceptions.contains(itemStack.getDisplayName()) ||
               FeatureRegistry.coverExceptions.contains(ChatHandler.getDefaultTranslation(itemStack));

    }

    return false;
}
项目:fencing    文件:FenceBlock.java   
protected boolean canConnectTo(IBlockAccess blockAccess, int x, int y, int z) {
    Block block = blockAccess.getBlock(x, y, z);
    if (block == null) {
        return false;
    } else if (block.getMaterial().isOpaque()
            && block.renderAsNormalBlock()) {
        // We'll connect against full 1x1x1 blocks.
        return true;
    } else if (block instanceof FenceBlock || block instanceof BlockFence
            || block instanceof BlockPane || block instanceof BlockWall) {
        // Of course we connect to our own.
        // And to vanilla fences, iron bars, glass panes and walls.
        return true;
    }
    return false;
}
项目:BaseClient    文件:ConnectedTextures.java   
public static synchronized BakedQuad getConnectedTexture(IBlockAccess p_getConnectedTexture_0_, IBlockState p_getConnectedTexture_1_, BlockPos p_getConnectedTexture_2_, BakedQuad p_getConnectedTexture_3_, RenderEnv p_getConnectedTexture_4_)
{
    TextureAtlasSprite textureatlassprite = p_getConnectedTexture_3_.getSprite();

    if (textureatlassprite == null)
    {
        return p_getConnectedTexture_3_;
    }
    else
    {
        Block block = p_getConnectedTexture_1_.getBlock();
        EnumFacing enumfacing = p_getConnectedTexture_3_.getFace();

        if (block instanceof BlockPane && textureatlassprite.getIconName().startsWith("minecraft:blocks/glass_pane_top"))
        {
            IBlockState iblockstate = p_getConnectedTexture_0_.getBlockState(p_getConnectedTexture_2_.offset(p_getConnectedTexture_3_.getFace()));

            if (iblockstate == p_getConnectedTexture_1_)
            {
                return getQuad(emptySprite, block, p_getConnectedTexture_1_, p_getConnectedTexture_3_);
            }
        }

        TextureAtlasSprite textureatlassprite1 = getConnectedTextureMultiPass(p_getConnectedTexture_0_, p_getConnectedTexture_1_, p_getConnectedTexture_2_, enumfacing, textureatlassprite, p_getConnectedTexture_4_);
        return textureatlassprite1 == textureatlassprite ? p_getConnectedTexture_3_ : getQuad(textureatlassprite1, block, p_getConnectedTexture_1_, p_getConnectedTexture_3_);
    }
}
项目:BaseClient    文件:ConnectedTextures.java   
public static synchronized BakedQuad getConnectedTexture(IBlockAccess p_getConnectedTexture_0_, IBlockState p_getConnectedTexture_1_, BlockPos p_getConnectedTexture_2_, BakedQuad p_getConnectedTexture_3_, RenderEnv p_getConnectedTexture_4_)
{
    TextureAtlasSprite textureatlassprite = p_getConnectedTexture_3_.getSprite();

    if (textureatlassprite == null)
    {
        return p_getConnectedTexture_3_;
    }
    else
    {
        Block block = p_getConnectedTexture_1_.getBlock();
        EnumFacing enumfacing = p_getConnectedTexture_3_.getFace();

        if (block instanceof BlockPane && textureatlassprite.getIconName().startsWith("minecraft:blocks/glass_pane_top"))
        {
            IBlockState iblockstate = p_getConnectedTexture_0_.getBlockState(p_getConnectedTexture_2_.offset(p_getConnectedTexture_3_.getFace()));

            if (iblockstate == p_getConnectedTexture_1_)
            {
                return getQuad(emptySprite, block, p_getConnectedTexture_1_, p_getConnectedTexture_3_);
            }
        }

        TextureAtlasSprite textureatlassprite1 = getConnectedTextureMultiPass(p_getConnectedTexture_0_, p_getConnectedTexture_1_, p_getConnectedTexture_2_, enumfacing, textureatlassprite, p_getConnectedTexture_4_);
        return textureatlassprite1 == textureatlassprite ? p_getConnectedTexture_3_ : getQuad(textureatlassprite1, block, p_getConnectedTexture_1_, p_getConnectedTexture_3_);
    }
}
项目:qcraft-mod    文件:TileEntityQuantumComputer.java   
private boolean isGlass( int x, int y, int z )
{
    if( y < 0 || y >= 256 )
    {
        return false;
    }

    Block block = worldObj.getBlock( x, y, z );
    if( block.getMaterial() == Material.glass && !(block instanceof BlockPane) )
    {
        return true;
    }
    return false;
}
项目:Fragile-Glass-1.7.10    文件:BlockFragilePane.java   
public final boolean canPaneConnectToBlock(Block p_150098_1_)
{
    return p_150098_1_.func_149730_j()
            || p_150098_1_ == this
            || p_150098_1_ == Blocks.glass
            || p_150098_1_ == Blocks.stained_glass
            || p_150098_1_ == Blocks.stained_glass_pane
            || p_150098_1_ instanceof BlockPane
            || p_150098_1_ instanceof AnyFragileGlassBlock;
}
项目:ZeldaSwordSkills    文件:EntityHookShot.java   
/**
 * Returns true if the block at the given position can be grappled by this type of hookshot
 */
protected boolean canGrabBlock(Block block, BlockPos pos, EnumFacing face) {
    Material material = block.getMaterial();
    Result result = Result.DEFAULT;
    if (block instanceof IHookable) {
        result = ((IHookable) block).canGrabBlock(getType(), worldObj, pos, face);
        material = ((IHookable) block).getHookableMaterial(getType(), worldObj, pos, face);
    } else if (Config.allowHookableOnly()) {
        return false;
    }
    switch (result) {
    case DEFAULT:
        switch (getType()) {
        case WOOD_SHOT:
        case WOOD_SHOT_EXT:
            return material == Material.wood;
        case CLAW_SHOT:
        case CLAW_SHOT_EXT:
            return material == Material.rock || (block instanceof BlockPane && material == Material.iron);
        case MULTI_SHOT:
        case MULTI_SHOT_EXT:
            return material == Material.wood || material == Material.rock || material == Material.ground ||
            material == Material.grass || material == Material.clay;
        }
    default: return (result == Result.ALLOW);
    }
}
项目:RuneCraftery    文件:RenderBlocks.java   
public boolean func_78612_b(Block p_78612_1_, int p_78612_2_, int p_78612_3_, int p_78612_4_) {
   int var5 = p_78612_1_.func_71857_b();
   if(var5 == -1) {
      return false;
   } else {
      p_78612_1_.func_71902_a(this.field_78669_a, p_78612_2_, p_78612_3_, p_78612_4_);
      this.func_83018_a(p_78612_1_);
      return var5 == 0?this.func_78570_q(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 4?this.func_78621_p(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 31?this.func_78581_r(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 1?this.func_78620_l(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 2?this.func_78572_c(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 20?this.func_78598_k(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 11?this.func_78582_a((BlockFence)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 39?this.func_96445_r(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 5?this.func_78589_i(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 13?this.func_78584_s(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 9?this.func_78586_a((BlockRailBase)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 19?this.func_78603_m(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 23?this.func_78566_o(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 6?this.func_78614_n(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 3?this.func_78590_h((BlockFire)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 8?this.func_78576_j(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 7?this.func_78601_u(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 10?this.func_78565_t((BlockStairs)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 27?this.func_78618_a((BlockDragonEgg)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 32?this.func_82779_a((BlockWall)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 12?this.func_78594_e(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 29?this.func_78577_f(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 30?this.func_78619_g(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 14?this.func_78574_w(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 15?this.func_78610_x((BlockRedstoneRepeater)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 36?this.func_94176_a((BlockRedstoneLogic)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 37?this.func_94171_a((BlockComparator)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 16?this.func_78593_b(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_, false):(var5 == 17?this.func_78608_c(p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_, true):(var5 == 18?this.func_78592_a((BlockPane)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 21?this.func_78580_a((BlockFenceGate)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 24?this.func_78615_a((BlockCauldron)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 33?this.func_82780_a((BlockFlowerPot)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 35?this.func_82775_a((BlockAnvil)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 25?this.func_78585_a((BlockBrewingStand)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 26?this.func_78567_v((BlockEndPortalFrame)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 28?this.func_78616_a((BlockCocoa)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 34?this.func_82778_a((BlockBeacon)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):(var5 == 38?this.func_94172_a((BlockHopper)p_78612_1_, p_78612_2_, p_78612_3_, p_78612_4_):false))))))))))))))))))))))))))))))))))))));
   }
}
项目:BaseClient    文件:BetterSnow.java   
private static boolean checkBlock(Block p_checkBlock_0_, IBlockState p_checkBlock_1_)
{
    if (p_checkBlock_0_.isFullCube())
    {
        return false;
    }
    else if (p_checkBlock_0_.isOpaqueCube())
    {
        return false;
    }
    else if (p_checkBlock_0_ instanceof BlockSnow)
    {
        return false;
    }
    else if (!(p_checkBlock_0_ instanceof BlockBush) || !(p_checkBlock_0_ instanceof BlockDoublePlant) && !(p_checkBlock_0_ instanceof BlockFlower) && !(p_checkBlock_0_ instanceof BlockMushroom) && !(p_checkBlock_0_ instanceof BlockSapling) && !(p_checkBlock_0_ instanceof BlockTallGrass))
    {
        if (!(p_checkBlock_0_ instanceof BlockFence) && !(p_checkBlock_0_ instanceof BlockFenceGate) && !(p_checkBlock_0_ instanceof BlockFlowerPot) && !(p_checkBlock_0_ instanceof BlockPane) && !(p_checkBlock_0_ instanceof BlockReed) && !(p_checkBlock_0_ instanceof BlockWall))
        {
            if (p_checkBlock_0_ instanceof BlockRedstoneTorch && p_checkBlock_1_.getValue(BlockTorch.FACING) == EnumFacing.UP)
            {
                return true;
            }
            else
            {
                if (p_checkBlock_0_ instanceof BlockLever)
                {
                    Object object = p_checkBlock_1_.getValue(BlockLever.FACING);

                    if (object == BlockLever.EnumOrientation.UP_X || object == BlockLever.EnumOrientation.UP_Z)
                    {
                        return true;
                    }
                }

                return false;
            }
        }
        else
        {
            return true;
        }
    }
    else
    {
        return true;
    }
}
项目:BaseClient    文件:BetterSnow.java   
private static boolean checkBlock(Block p_checkBlock_0_, IBlockState p_checkBlock_1_)
{
    if (p_checkBlock_0_.isFullCube())
    {
        return false;
    }
    else if (p_checkBlock_0_.isOpaqueCube())
    {
        return false;
    }
    else if (p_checkBlock_0_ instanceof BlockSnow)
    {
        return false;
    }
    else if (!(p_checkBlock_0_ instanceof BlockBush) || !(p_checkBlock_0_ instanceof BlockDoublePlant) && !(p_checkBlock_0_ instanceof BlockFlower) && !(p_checkBlock_0_ instanceof BlockMushroom) && !(p_checkBlock_0_ instanceof BlockSapling) && !(p_checkBlock_0_ instanceof BlockTallGrass))
    {
        if (!(p_checkBlock_0_ instanceof BlockFence) && !(p_checkBlock_0_ instanceof BlockFenceGate) && !(p_checkBlock_0_ instanceof BlockFlowerPot) && !(p_checkBlock_0_ instanceof BlockPane) && !(p_checkBlock_0_ instanceof BlockReed) && !(p_checkBlock_0_ instanceof BlockWall))
        {
            if (p_checkBlock_0_ instanceof BlockRedstoneTorch && p_checkBlock_1_.getValue(BlockTorch.FACING) == EnumFacing.UP)
            {
                return true;
            }
            else
            {
                if (p_checkBlock_0_ instanceof BlockLever)
                {
                    Object object = p_checkBlock_1_.getValue(BlockLever.FACING);

                    if (object == BlockLever.EnumOrientation.UP_X || object == BlockLever.EnumOrientation.UP_Z)
                    {
                        return true;
                    }
                }

                return false;
            }
        }
        else
        {
            return true;
        }
    }
    else
    {
        return true;
    }
}
项目:Backmemed    文件:BetterSnow.java   
private static boolean checkBlock(Block p_checkBlock_0_, IBlockState p_checkBlock_1_)
{
    if (p_checkBlock_1_.isFullCube())
    {
        return false;
    }
    else if (p_checkBlock_1_.isOpaqueCube())
    {
        return false;
    }
    else if (p_checkBlock_0_ instanceof BlockSnow)
    {
        return false;
    }
    else if (!(p_checkBlock_0_ instanceof BlockBush) || !(p_checkBlock_0_ instanceof BlockDoublePlant) && !(p_checkBlock_0_ instanceof BlockFlower) && !(p_checkBlock_0_ instanceof BlockMushroom) && !(p_checkBlock_0_ instanceof BlockSapling) && !(p_checkBlock_0_ instanceof BlockTallGrass))
    {
        if (!(p_checkBlock_0_ instanceof BlockFence) && !(p_checkBlock_0_ instanceof BlockFenceGate) && !(p_checkBlock_0_ instanceof BlockFlowerPot) && !(p_checkBlock_0_ instanceof BlockPane) && !(p_checkBlock_0_ instanceof BlockReed) && !(p_checkBlock_0_ instanceof BlockWall))
        {
            if (p_checkBlock_0_ instanceof BlockRedstoneTorch && p_checkBlock_1_.getValue(BlockTorch.FACING) == EnumFacing.UP)
            {
                return true;
            }
            else
            {
                if (p_checkBlock_0_ instanceof BlockLever)
                {
                    Object object = p_checkBlock_1_.getValue(BlockLever.FACING);

                    if (object == BlockLever.EnumOrientation.UP_X || object == BlockLever.EnumOrientation.UP_Z)
                    {
                        return true;
                    }
                }

                return false;
            }
        }
        else
        {
            return true;
        }
    }
    else
    {
        return true;
    }
}
项目:Backmemed    文件:ConnectedTextures.java   
private static boolean skipConnectedTexture(IBlockAccess p_skipConnectedTexture_0_, IBlockState p_skipConnectedTexture_1_, BlockPos p_skipConnectedTexture_2_, BakedQuad p_skipConnectedTexture_3_, RenderEnv p_skipConnectedTexture_4_)
{
    Block block = p_skipConnectedTexture_1_.getBlock();

    if (block instanceof BlockPane)
    {
        EnumFacing enumfacing = p_skipConnectedTexture_3_.getFace();

        if (enumfacing != EnumFacing.UP && enumfacing != EnumFacing.DOWN)
        {
            return false;
        }

        if (!p_skipConnectedTexture_3_.isFaceQuad())
        {
            return false;
        }

        BlockPos blockpos = p_skipConnectedTexture_2_.offset(p_skipConnectedTexture_3_.getFace());
        IBlockState iblockstate = p_skipConnectedTexture_0_.getBlockState(blockpos);

        if (iblockstate.getBlock() != block)
        {
            return false;
        }

        if (block == Blocks.STAINED_GLASS_PANE && iblockstate.getValue(BlockStainedGlassPane.COLOR) != p_skipConnectedTexture_1_.getValue(BlockStainedGlassPane.COLOR))
        {
            return false;
        }

        iblockstate = iblockstate.getActualState(p_skipConnectedTexture_0_, blockpos);
        double d0 = (double)p_skipConnectedTexture_3_.getMidX();

        if (d0 < 0.4D)
        {
            if (((Boolean)iblockstate.getValue(BlockPane.WEST)).booleanValue())
            {
                return true;
            }
        }
        else if (d0 > 0.6D)
        {
            if (((Boolean)iblockstate.getValue(BlockPane.EAST)).booleanValue())
            {
                return true;
            }
        }
        else
        {
            double d1 = p_skipConnectedTexture_3_.getMidZ();

            if (d1 < 0.4D)
            {
                if (((Boolean)iblockstate.getValue(BlockPane.NORTH)).booleanValue())
                {
                    return true;
                }
            }
            else
            {
                if (d1 <= 0.6D)
                {
                    return true;
                }

                if (((Boolean)iblockstate.getValue(BlockPane.SOUTH)).booleanValue())
                {
                    return true;
                }
            }
        }
    }

    return false;
}
项目:BetterWithAddons    文件:BlockModPane.java   
public boolean canConnectTo(IBlockAccess world, BlockPos pos, EnumFacing facing)
{
    IBlockState state = world.getBlockState(pos);
    Block block = state.getBlock();
    return !(block instanceof BlockPane) && block == this || state.isOpaqueCube() || block.isSideSolid(state, world, pos, facing.getOpposite()) || compatiblePanes.contains(block);
}
项目:Chisel-1.7.2    文件:CarvableHelper.java   
public void registerBlockIcons(String modName, Block block, IIconRegister register) {
    for (CarvableVariation variation : variations) {
        if (variation.block != null) {
            variation.block.registerBlockIcons(register);

            if (variation.block instanceof BlockPane) {
                variation.icon = variation.block.getBlockTextureFromSide(2);
                variation.iconTop = ((BlockPane) variation.block).getBlockTextureFromSide(0);
                variation.iconBot = ((BlockPane) variation.block).getBlockTextureFromSide(0);
            } else {
                switch (variation.kind) {
                case 0:
                    variation.icon = variation.block.getIcon(2, variation.blockMeta);
                    break;
                case 1:
                    variation.icon = variation.block.getIcon(2, variation.blockMeta);
                    variation.iconTop = variation.block.getIcon(0, variation.blockMeta);
                    break;
                case 2:
                    variation.icon = variation.block.getIcon(2, variation.blockMeta);
                    variation.iconTop = variation.block.getIcon(1, variation.blockMeta);
                    variation.iconBot = variation.block.getIcon(0, variation.blockMeta);
                    break;
                }
            }
        } else {
            switch (variation.kind) {
            case 0:
                variation.icon = register.registerIcon(modName + ":" + variation.texture);
                break;
            case 1:
                variation.icon = register.registerIcon(modName + ":" + variation.texture + "-side");
                variation.iconTop = register.registerIcon(modName + ":" + variation.texture + "-top");
                break;
            case 2:
                variation.icon = register.registerIcon(modName + ":" + variation.texture + "-side");
                variation.iconTop = register.registerIcon(modName + ":" + variation.texture + "-top");
                variation.iconBot = register.registerIcon(modName + ":" + variation.texture + "-bottom");
                break;
            case 3:
                CarvableVariationCTM ctm=new CarvableVariationCTM();
                ctm.seams[0]=new TextureSubmap(register.registerIcon(modName + ":" + variation.texture+"-ctm1"),4,4);
                ctm.seams[1]=new TextureSubmap(register.registerIcon(modName + ":" + variation.texture+"-ctm2"),4,4);
                ctm.seams[2]=new TextureSubmap(register.registerIcon(modName + ":" + variation.texture+"-ctm3"),4,4);
                variation.ctm=ctm;
                break;
            case 4:
                variation.seamsCtmVert=new TextureSubmap(register.registerIcon(modName + ":" + variation.texture+"-ctmv"),2,2);
                variation.iconTop = register.registerIcon(modName + ":" + variation.texture + "-top");
                break;
            case 5:
                variation.seamsCtmVert=new TextureSubmap(register.registerIcon(modName + ":" + variation.texture+"-ctmh"),2,2);
                variation.iconTop = register.registerIcon(modName + ":" + variation.texture + "-top");
                break;
            case V9:
                variation.variations9=new TextureSubmap(register.registerIcon(modName + ":" + variation.texture+"-v9"),3,3);
                break;
            case V4:
                variation.variations9=new TextureSubmap(register.registerIcon(modName + ":" + variation.texture+"-v4"),2,2);
                break;
            case CTMX:
                variation.icon=register.registerIcon(modName + ":" + variation.texture);
                variation.submap=new TextureSubmap(register.registerIcon(modName + ":" + variation.texture+"-ctm"),4,4);
                variation.submapSmall=new TextureSubmap(variation.icon,2,2);
                break;
            }
        }
    }
}
项目:SecurityCraft    文件:BlockReinforcedStainedGlassPanes.java   
public BlockReinforcedStainedGlassPanes() {
    super();
    ObfuscationReflectionHelper.setPrivateValue(BlockPane.class, this, "glass_reinforced", 2);
    ObfuscationReflectionHelper.setPrivateValue(BlockPane.class, this, "glass_reinforced_pane_top", 0);
}
项目:Cauldron    文件:RenderBlocks.java   
public boolean renderBlockByRenderType(Block p_147805_1_, int p_147805_2_, int p_147805_3_, int p_147805_4_)
{
    int l = p_147805_1_.getRenderType();

    if (l == -1)
    {
        return false;
    }
    else
    {
        p_147805_1_.setBlockBoundsBasedOnState(this.blockAccess, p_147805_2_, p_147805_3_, p_147805_4_);
        this.setRenderBoundsFromBlock(p_147805_1_);

        switch (l)
        {
        //regex: ' : \(l == ([\d]+) \?' replace: ';\ncase \1: return' ::: IMPORTANT: REMEMBER THIS ON FIRST line!
        case 0 : return this.renderStandardBlock(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 4: return this.renderBlockLiquid(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 31: return this.renderBlockLog(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 1: return this.renderCrossedSquares(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 40: return this.renderBlockDoublePlant((BlockDoublePlant)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 2: return this.renderBlockTorch(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 20: return this.renderBlockVine(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 11: return this.renderBlockFence((BlockFence)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 39: return this.renderBlockQuartz(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 5: return this.renderBlockRedstoneWire(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 13: return this.renderBlockCactus(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 9: return this.renderBlockMinecartTrack((BlockRailBase)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 19: return this.renderBlockStem(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 23: return this.renderBlockLilyPad(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 6: return this.renderBlockCrops(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 3: return this.renderBlockFire((BlockFire)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 8: return this.renderBlockLadder(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 7: return this.renderBlockDoor(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 10: return this.renderBlockStairs((BlockStairs)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 27: return this.renderBlockDragonEgg((BlockDragonEgg)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 32: return this.renderBlockWall((BlockWall)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 12: return this.renderBlockLever(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 29: return this.renderBlockTripWireSource(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 30: return this.renderBlockTripWire(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 14: return this.renderBlockBed(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 15: return this.renderBlockRepeater((BlockRedstoneRepeater)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 36: return this.renderBlockRedstoneDiode((BlockRedstoneDiode)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 37: return this.renderBlockRedstoneComparator((BlockRedstoneComparator)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 16: return this.renderPistonBase(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_, false) ;
        case 17: return this.renderPistonExtension(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_, true) ;
        case 18: return this.renderBlockPane((BlockPane)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 41: return this.renderBlockStainedGlassPane(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 21: return this.renderBlockFenceGate((BlockFenceGate)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 24: return this.renderBlockCauldron((BlockCauldron)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 33: return this.renderBlockFlowerpot((BlockFlowerPot)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 35: return this.renderBlockAnvil((BlockAnvil)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 25: return this.renderBlockBrewingStand((BlockBrewingStand)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 26: return this.renderBlockEndPortalFrame((BlockEndPortalFrame)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 28: return this.renderBlockCocoa((BlockCocoa)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 34: return this.renderBlockBeacon((BlockBeacon)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 38: return this.renderBlockHopper((BlockHopper)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_);
        default: return FMLRenderAccessLibrary.renderWorldBlock(this, blockAccess, p_147805_2_, p_147805_3_, p_147805_4_, p_147805_1_, l);
        }
    }
}
项目:Cauldron    文件:RenderBlocks.java   
public boolean renderBlockByRenderType(Block p_147805_1_, int p_147805_2_, int p_147805_3_, int p_147805_4_)
{
    int l = p_147805_1_.getRenderType();

    if (l == -1)
    {
        return false;
    }
    else
    {
        p_147805_1_.setBlockBoundsBasedOnState(this.blockAccess, p_147805_2_, p_147805_3_, p_147805_4_);
        this.setRenderBoundsFromBlock(p_147805_1_);

        switch (l)
        {
        //regex: ' : \(l == ([\d]+) \?' replace: ';\ncase \1: return' ::: IMPORTANT: REMEMBER THIS ON FIRST line!
        case 0 : return this.renderStandardBlock(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 4: return this.renderBlockLiquid(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 31: return this.renderBlockLog(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 1: return this.renderCrossedSquares(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 40: return this.renderBlockDoublePlant((BlockDoublePlant)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 2: return this.renderBlockTorch(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 20: return this.renderBlockVine(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 11: return this.renderBlockFence((BlockFence)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 39: return this.renderBlockQuartz(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 5: return this.renderBlockRedstoneWire(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 13: return this.renderBlockCactus(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 9: return this.renderBlockMinecartTrack((BlockRailBase)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 19: return this.renderBlockStem(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 23: return this.renderBlockLilyPad(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 6: return this.renderBlockCrops(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 3: return this.renderBlockFire((BlockFire)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 8: return this.renderBlockLadder(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 7: return this.renderBlockDoor(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 10: return this.renderBlockStairs((BlockStairs)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 27: return this.renderBlockDragonEgg((BlockDragonEgg)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 32: return this.renderBlockWall((BlockWall)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 12: return this.renderBlockLever(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 29: return this.renderBlockTripWireSource(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 30: return this.renderBlockTripWire(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 14: return this.renderBlockBed(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 15: return this.renderBlockRepeater((BlockRedstoneRepeater)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 36: return this.renderBlockRedstoneDiode((BlockRedstoneDiode)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 37: return this.renderBlockRedstoneComparator((BlockRedstoneComparator)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 16: return this.renderPistonBase(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_, false) ;
        case 17: return this.renderPistonExtension(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_, true) ;
        case 18: return this.renderBlockPane((BlockPane)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 41: return this.renderBlockStainedGlassPane(p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 21: return this.renderBlockFenceGate((BlockFenceGate)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 24: return this.renderBlockCauldron((BlockCauldron)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 33: return this.renderBlockFlowerpot((BlockFlowerPot)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 35: return this.renderBlockAnvil((BlockAnvil)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 25: return this.renderBlockBrewingStand((BlockBrewingStand)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 26: return this.renderBlockEndPortalFrame((BlockEndPortalFrame)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 28: return this.renderBlockCocoa((BlockCocoa)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 34: return this.renderBlockBeacon((BlockBeacon)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_) ;
        case 38: return this.renderBlockHopper((BlockHopper)p_147805_1_, p_147805_2_, p_147805_3_, p_147805_4_);
        default: return FMLRenderAccessLibrary.renderWorldBlock(this, blockAccess, p_147805_2_, p_147805_3_, p_147805_4_, p_147805_1_, l);
        }
    }
}
项目:RuneCraftery    文件:RenderBlocks.java   
/**
 * Renders the block at the given coordinates using the block's rendering type
 */
public boolean renderBlockByRenderType(Block par1Block, int par2, int par3, int par4)
{
    int l = par1Block.getRenderType();

    if (l == -1)
    {
        return false;
    }
    else
    {
        par1Block.setBlockBoundsBasedOnState(this.blockAccess, par2, par3, par4);
        this.setRenderBoundsFromBlock(par1Block);

        switch (l)
        {
            //regex: ' : \(l == ([\d]+) \?' replace: ';\ncase \1: return' ::: IMPORTANT: REMEMBER THIS ON FIRST line!
            case 0: return this.renderStandardBlock(par1Block, par2, par3, par4);
            case 4: return this.renderBlockFluids(par1Block, par2, par3, par4);
            case 31: return this.renderBlockLog(par1Block, par2, par3, par4);
            case 1: return this.renderCrossedSquares(par1Block, par2, par3, par4);
            case 2: return this.renderBlockTorch(par1Block, par2, par3, par4);
            case 20: return this.renderBlockVine(par1Block, par2, par3, par4);
            case 11: return this.renderBlockFence((BlockFence)par1Block, par2, par3, par4);
            case 39: return this.renderBlockQuartz(par1Block, par2, par3, par4);
            case 5: return this.renderBlockRedstoneWire(par1Block, par2, par3, par4);
            case 13: return this.renderBlockCactus(par1Block, par2, par3, par4);
            case 9: return this.renderBlockMinecartTrack((BlockRailBase)par1Block, par2, par3, par4);
            case 19: return this.renderBlockStem(par1Block, par2, par3, par4);
            case 23: return this.renderBlockLilyPad(par1Block, par2, par3, par4);
            case 6: return this.renderBlockCrops(par1Block, par2, par3, par4);
            case 3: return this.renderBlockFire((BlockFire)par1Block, par2, par3, par4);
            case 8: return this.renderBlockLadder(par1Block, par2, par3, par4);
            case 7: return this.renderBlockDoor(par1Block, par2, par3, par4);
            case 10: return this.renderBlockStairs((BlockStairs)par1Block, par2, par3, par4);
            case 27: return this.renderBlockDragonEgg((BlockDragonEgg)par1Block, par2, par3, par4);
            case 32: return this.renderBlockWall((BlockWall)par1Block, par2, par3, par4);
            case 12: return this.renderBlockLever(par1Block, par2, par3, par4);
            case 29: return this.renderBlockTripWireSource(par1Block, par2, par3, par4);
            case 30: return this.renderBlockTripWire(par1Block, par2, par3, par4);
            case 14: return this.renderBlockBed(par1Block, par2, par3, par4);
            case 15: return this.renderBlockRepeater((BlockRedstoneRepeater)par1Block, par2, par3, par4);
            case 36: return this.renderBlockRedstoneLogic((BlockRedstoneLogic)par1Block, par2, par3, par4);
            case 37: return this.renderBlockComparator((BlockComparator)par1Block, par2, par3, par4);
            case 16: return this.renderPistonBase(par1Block, par2, par3, par4, false);
            case 17: return this.renderPistonExtension(par1Block, par2, par3, par4, true);
            case 18: return this.renderBlockPane((BlockPane)par1Block, par2, par3, par4);
            case 21: return this.renderBlockFenceGate((BlockFenceGate)par1Block, par2, par3, par4);
            case 24: return this.renderBlockCauldron((BlockCauldron)par1Block, par2, par3, par4);
            case 33: return this.renderBlockFlowerpot((BlockFlowerPot)par1Block, par2, par3, par4);
            case 35: return this.renderBlockAnvil((BlockAnvil)par1Block, par2, par3, par4);
            case 25: return this.renderBlockBrewingStand((BlockBrewingStand)par1Block, par2, par3, par4);
            case 26: return this.renderBlockEndPortalFrame((BlockEndPortalFrame)par1Block, par2, par3, par4);
            case 28: return this.renderBlockCocoa((BlockCocoa)par1Block, par2, par3, par4);
            case 34: return this.renderBlockBeacon((BlockBeacon)par1Block, par2, par3, par4);
            case 38: return this.renderBlockHopper((BlockHopper)par1Block, par2, par3, par4);
            default: return FMLRenderAccessLibrary.renderWorldBlock(this, blockAccess, par2, par3, par4, par1Block, l);
        }
    }
}
项目:BetterNutritionMod    文件:RenderBlocks.java   
/**
 * Renders the block at the given coordinates using the block's rendering type
 */
public boolean renderBlockByRenderType(Block par1Block, int par2, int par3, int par4)
{
    int l = par1Block.getRenderType();

    if (l == -1)
    {
        return false;
    }
    else
    {
        par1Block.setBlockBoundsBasedOnState(this.blockAccess, par2, par3, par4);
        this.setRenderBoundsFromBlock(par1Block);

        switch (l)
        {
            //regex: ' : \(l == ([\d]+) \?' replace: ';\ncase \1: return' ::: IMPORTANT: REMEMBER THIS ON FIRST line!
            case 0: return this.renderStandardBlock(par1Block, par2, par3, par4);
            case 4: return this.renderBlockFluids(par1Block, par2, par3, par4);
            case 31: return this.renderBlockLog(par1Block, par2, par3, par4);
            case 1: return this.renderCrossedSquares(par1Block, par2, par3, par4);
            case 2: return this.renderBlockTorch(par1Block, par2, par3, par4);
            case 20: return this.renderBlockVine(par1Block, par2, par3, par4);
            case 11: return this.renderBlockFence((BlockFence)par1Block, par2, par3, par4);
            case 39: return this.renderBlockQuartz(par1Block, par2, par3, par4);
            case 5: return this.renderBlockRedstoneWire(par1Block, par2, par3, par4);
            case 13: return this.renderBlockCactus(par1Block, par2, par3, par4);
            case 9: return this.renderBlockMinecartTrack((BlockRailBase)par1Block, par2, par3, par4);
            case 19: return this.renderBlockStem(par1Block, par2, par3, par4);
            case 23: return this.renderBlockLilyPad(par1Block, par2, par3, par4);
            case 6: return this.renderBlockCrops(par1Block, par2, par3, par4);
            case 3: return this.renderBlockFire((BlockFire)par1Block, par2, par3, par4);
            case 8: return this.renderBlockLadder(par1Block, par2, par3, par4);
            case 7: return this.renderBlockDoor(par1Block, par2, par3, par4);
            case 10: return this.renderBlockStairs((BlockStairs)par1Block, par2, par3, par4);
            case 27: return this.renderBlockDragonEgg((BlockDragonEgg)par1Block, par2, par3, par4);
            case 32: return this.renderBlockWall((BlockWall)par1Block, par2, par3, par4);
            case 12: return this.renderBlockLever(par1Block, par2, par3, par4);
            case 29: return this.renderBlockTripWireSource(par1Block, par2, par3, par4);
            case 30: return this.renderBlockTripWire(par1Block, par2, par3, par4);
            case 14: return this.renderBlockBed(par1Block, par2, par3, par4);
            case 15: return this.renderBlockRepeater((BlockRedstoneRepeater)par1Block, par2, par3, par4);
            case 36: return this.renderBlockRedstoneLogic((BlockRedstoneLogic)par1Block, par2, par3, par4);
            case 37: return this.renderBlockComparator((BlockComparator)par1Block, par2, par3, par4);
            case 16: return this.renderPistonBase(par1Block, par2, par3, par4, false);
            case 17: return this.renderPistonExtension(par1Block, par2, par3, par4, true);
            case 18: return this.renderBlockPane((BlockPane)par1Block, par2, par3, par4);
            case 21: return this.renderBlockFenceGate((BlockFenceGate)par1Block, par2, par3, par4);
            case 24: return this.renderBlockCauldron((BlockCauldron)par1Block, par2, par3, par4);
            case 33: return this.renderBlockFlowerpot((BlockFlowerPot)par1Block, par2, par3, par4);
            case 35: return this.renderBlockAnvil((BlockAnvil)par1Block, par2, par3, par4);
            case 25: return this.renderBlockBrewingStand((BlockBrewingStand)par1Block, par2, par3, par4);
            case 26: return this.renderBlockEndPortalFrame((BlockEndPortalFrame)par1Block, par2, par3, par4);
            case 28: return this.renderBlockCocoa((BlockCocoa)par1Block, par2, par3, par4);
            case 34: return this.renderBlockBeacon((BlockBeacon)par1Block, par2, par3, par4);
            case 38: return this.renderBlockHopper((BlockHopper)par1Block, par2, par3, par4);
            default: return FMLRenderAccessLibrary.renderWorldBlock(this, blockAccess, par2, par3, par4, par1Block, l);
        }
    }
}