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

项目:TRHS_Club_Mod_2016    文件:RotationHelper.java   
public static ForgeDirection[] getValidVanillaBlockRotations(Block block)
{
    return (block instanceof BlockBed || 
            block instanceof BlockPumpkin ||
            block instanceof BlockFenceGate || 
            block instanceof BlockEndPortalFrame || 
            block instanceof BlockTripWireHook || 
            block instanceof BlockCocoa || 
            block instanceof BlockRailPowered || 
            block instanceof BlockRailDetector || 
            block instanceof BlockStairs || 
            block instanceof BlockChest || 
            block instanceof BlockEnderChest || 
            block instanceof BlockFurnace || 
            block instanceof BlockLadder || 
            block == Blocks.field_150444_as || 
            block == Blocks.field_150472_an || 
            block instanceof BlockDoor || 
            block instanceof BlockRail ||
            block instanceof BlockButton || 
            block instanceof BlockRedstoneRepeater || 
            block instanceof BlockRedstoneComparator || 
            block instanceof BlockTrapDoor || 
            block instanceof BlockHugeMushroom || 
            block instanceof BlockVine || 
            block instanceof BlockSkull || 
            block instanceof BlockAnvil) ? UP_DOWN_AXES : VALID_DIRECTIONS;
}
项目:CauldronGit    文件:RotationHelper.java   
public static ForgeDirection[] getValidVanillaBlockRotations(Block block)
{
    return (block instanceof BlockBed || 
            block instanceof BlockPumpkin ||
            block instanceof BlockFenceGate || 
            block instanceof BlockEndPortalFrame || 
            block instanceof BlockTripWireHook || 
            block instanceof BlockCocoa || 
            block instanceof BlockRailPowered || 
            block instanceof BlockRailDetector || 
            block instanceof BlockStairs || 
            block instanceof BlockChest || 
            block instanceof BlockEnderChest || 
            block instanceof BlockFurnace || 
            block instanceof BlockLadder || 
            block == Blocks.wall_sign || 
            block == Blocks.standing_sign || 
            block instanceof BlockDoor || 
            block instanceof BlockRail ||
            block instanceof BlockButton || 
            block instanceof BlockRedstoneRepeater || 
            block instanceof BlockRedstoneComparator || 
            block instanceof BlockTrapDoor || 
            block instanceof BlockHugeMushroom || 
            block instanceof BlockVine || 
            block instanceof BlockSkull || 
            block instanceof BlockAnvil) ? UP_DOWN_AXES : VALID_DIRECTIONS;
}
项目:Cauldron    文件:RotationHelper.java   
public static ForgeDirection[] getValidVanillaBlockRotations(Block block)
{
    return (block instanceof BlockBed || 
            block instanceof BlockPumpkin ||
            block instanceof BlockFenceGate || 
            block instanceof BlockEndPortalFrame || 
            block instanceof BlockTripWireHook || 
            block instanceof BlockCocoa || 
            block instanceof BlockRailPowered || 
            block instanceof BlockRailDetector || 
            block instanceof BlockStairs || 
            block instanceof BlockChest || 
            block instanceof BlockEnderChest || 
            block instanceof BlockFurnace || 
            block instanceof BlockLadder || 
            block == Blocks.wall_sign || 
            block == Blocks.standing_sign || 
            block instanceof BlockDoor || 
            block instanceof BlockRail ||
            block instanceof BlockButton || 
            block instanceof BlockRedstoneRepeater || 
            block instanceof BlockRedstoneComparator || 
            block instanceof BlockTrapDoor || 
            block instanceof BlockHugeMushroom || 
            block instanceof BlockVine || 
            block instanceof BlockSkull || 
            block instanceof BlockAnvil) ? UP_DOWN_AXES : VALID_DIRECTIONS;
}
项目:Cauldron    文件:RotationHelper.java   
public static ForgeDirection[] getValidVanillaBlockRotations(Block block)
{
    return (block instanceof BlockBed || 
            block instanceof BlockPumpkin ||
            block instanceof BlockFenceGate || 
            block instanceof BlockEndPortalFrame || 
            block instanceof BlockTripWireHook || 
            block instanceof BlockCocoa || 
            block instanceof BlockRailPowered || 
            block instanceof BlockRailDetector || 
            block instanceof BlockStairs || 
            block instanceof BlockChest || 
            block instanceof BlockEnderChest || 
            block instanceof BlockFurnace || 
            block instanceof BlockLadder || 
            block == Blocks.wall_sign || 
            block == Blocks.standing_sign || 
            block instanceof BlockDoor || 
            block instanceof BlockRail ||
            block instanceof BlockButton || 
            block instanceof BlockRedstoneRepeater || 
            block instanceof BlockRedstoneComparator || 
            block instanceof BlockTrapDoor || 
            block instanceof BlockHugeMushroom || 
            block instanceof BlockVine || 
            block instanceof BlockSkull || 
            block instanceof BlockAnvil) ? UP_DOWN_AXES : VALID_DIRECTIONS;
}
项目:Cauldron    文件:RotationHelper.java   
public static ForgeDirection[] getValidVanillaBlockRotations(Block block)
{
    return (block instanceof BlockBed || 
            block instanceof BlockPumpkin ||
            block instanceof BlockFenceGate || 
            block instanceof BlockEndPortalFrame || 
            block instanceof BlockTripWireHook || 
            block instanceof BlockCocoa || 
            block instanceof BlockRailPowered || 
            block instanceof BlockRailDetector || 
            block instanceof BlockStairs || 
            block instanceof BlockChest || 
            block instanceof BlockEnderChest || 
            block instanceof BlockFurnace || 
            block instanceof BlockLadder || 
            block == Blocks.wall_sign || 
            block == Blocks.standing_sign || 
            block instanceof BlockDoor || 
            block instanceof BlockRail ||
            block instanceof BlockButton || 
            block instanceof BlockRedstoneRepeater || 
            block instanceof BlockRedstoneComparator || 
            block instanceof BlockTrapDoor || 
            block instanceof BlockHugeMushroom || 
            block instanceof BlockVine || 
            block instanceof BlockSkull || 
            block instanceof BlockAnvil) ? UP_DOWN_AXES : VALID_DIRECTIONS;
}
项目:QmunityLib    文件:RedstoneHelper.java   
private static boolean isVanillaBlock(World world, BlockPos pos) {

        Block b = world.getBlock(pos.getX(), pos.getY(), pos.getZ());
        return b instanceof BlockRedstoneRepeater || b instanceof BlockLever || b instanceof BlockRedstoneWire
                || b instanceof BlockRedstoneComparator || b instanceof BlockDoor || b instanceof BlockRedstoneLight
                || b instanceof BlockTNT || b instanceof BlockDispenser || b instanceof BlockNote
                || b instanceof BlockPistonBase;
    }
项目: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))))))))))))))))))))))))))))))))))))));
   }
}
项目:StructureGenerationAPI    文件:GenHelper.java   
/**
 * Returns true if material for realID matches or is compatible with worldID material
 */
public static final boolean materialsMatch(Block block1, Block block2) {
    return  (block1.getMaterial() == Material.grass && block2.getMaterial() == Material.ground) ||
            (block1.getMaterial().isLiquid() && block2.getMaterial() == block1.getMaterial()) ||
            (block1.getMaterial() == Material.ice && block2.getMaterial() == Material.water) ||
            (block1.getMaterial() == Material.piston && block2.getMaterial() == Material.piston) ||
            (block1 instanceof BlockRedstoneTorch && block2 instanceof BlockRedstoneTorch) ||
            (block1 instanceof BlockRedstoneRepeater && block2 instanceof BlockRedstoneRepeater);
}
项目:minecraft-roguelike    文件:Repeater.java   
public static void generate(IWorldEditor editor, Random rand, Cardinal dir, int delay, boolean powered, Coord pos){

    MetaBlock repeater = powered ? new MetaBlock(Blocks.POWERED_REPEATER) : new MetaBlock(Blocks.UNPOWERED_REPEATER);
    repeater.withProperty(BlockRedstoneRepeater.FACING, Cardinal.facing(dir));
    if (delay > 0 && delay <= 4) repeater.withProperty(BlockRedstoneRepeater.DELAY, delay);
    repeater.set(editor, pos);
}
项目:Structures    文件:RotationHelper.java   
private static BlockType getBlockType(Block block) {

    if(block instanceof BlockBed || block instanceof BlockPumpkin || block instanceof BlockFenceGate || block instanceof BlockEndPortalFrame
        || block instanceof BlockCocoa) {
      return BlockType.BED;
    }
    if(block instanceof BlockRail) {
      return BlockType.RAIL;
    }
    if(block instanceof BlockRailPowered || block instanceof BlockRailDetector) {
      return BlockType.RAIL_POWERED;
    }
    if(block instanceof BlockStairs) {
      return BlockType.STAIR;
    }
    if(block instanceof BlockChest || block instanceof BlockEnderChest || block instanceof BlockFurnace || block instanceof BlockLadder
        || block == Blocks.wall_sign) {
      return BlockType.CHEST;
    }
    if(block == Blocks.standing_sign) {
      return BlockType.SIGNPOST;
    }
    if(block instanceof BlockDoor) {
      return BlockType.DOOR;
    }
    if(block instanceof BlockButton) {
      return BlockType.BUTTON;
    }
    if(block instanceof BlockRedstoneRepeater || block instanceof BlockRedstoneComparator) {
      return BlockType.REDSTONE_REPEATER;
    }
    if(block instanceof BlockTrapDoor) {
      return BlockType.TRAPDOOR;
    }
    if(block instanceof BlockHugeMushroom) {
      return BlockType.MUSHROOM_CAP;
    }
    if(block instanceof BlockVine) {
      return BlockType.VINE;
    }
    if(block instanceof BlockSkull) {
      return BlockType.SKULL;
    }
    if(block instanceof BlockAnvil) {
      return BlockType.ANVIL;
    }
    if(block instanceof BlockLog) {
      return BlockType.LOG;
    }
    if(block instanceof BlockDispenser || block instanceof BlockPistonBase || block instanceof BlockPistonExtension || block instanceof BlockHopper) {
      return BlockType.DISPENSER;
    }
    if(block instanceof BlockTorch) {
      return BlockType.TORCH;
    }
    if(block instanceof BlockLever) {
      return BlockType.LEVER;
    }
    if(block instanceof BlockTripWireHook) {
      return BlockType.TRIP_WIRE_HOOK;
    }

    return null;
  }
项目: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 renderBlockRepeater(BlockRedstoneRepeater p_147759_1_, int p_147759_2_, int p_147759_3_, int p_147759_4_)
{
    int l = this.blockAccess.getBlockMetadata(p_147759_2_, p_147759_3_, p_147759_4_);
    int i1 = l & 3;
    int j1 = (l & 12) >> 2;
    Tessellator tessellator = Tessellator.instance;
    tessellator.setBrightness(p_147759_1_.getMixedBrightnessForBlock(this.blockAccess, p_147759_2_, p_147759_3_, p_147759_4_));
    tessellator.setColorOpaque_F(1.0F, 1.0F, 1.0F);
    double d0 = -0.1875D;
    boolean flag = p_147759_1_.func_149910_g(this.blockAccess, p_147759_2_, p_147759_3_, p_147759_4_, l);
    double d1 = 0.0D;
    double d2 = 0.0D;
    double d3 = 0.0D;
    double d4 = 0.0D;

    switch (i1)
    {
        case 0:
            d4 = -0.3125D;
            d2 = BlockRedstoneRepeater.repeaterTorchOffset[j1];
            break;
        case 1:
            d3 = 0.3125D;
            d1 = -BlockRedstoneRepeater.repeaterTorchOffset[j1];
            break;
        case 2:
            d4 = 0.3125D;
            d2 = -BlockRedstoneRepeater.repeaterTorchOffset[j1];
            break;
        case 3:
            d3 = -0.3125D;
            d1 = BlockRedstoneRepeater.repeaterTorchOffset[j1];
    }

    if (!flag)
    {
        this.renderTorchAtAngle(p_147759_1_, (double)p_147759_2_ + d1, (double)p_147759_3_ + d0, (double)p_147759_4_ + d2, 0.0D, 0.0D, 0);
    }
    else
    {
        IIcon iicon = this.getBlockIcon(Blocks.bedrock);
        this.setOverrideBlockTexture(iicon);
        float f = 2.0F;
        float f1 = 14.0F;
        float f2 = 7.0F;
        float f3 = 9.0F;

        switch (i1)
        {
            case 1:
            case 3:
                f = 7.0F;
                f1 = 9.0F;
                f2 = 2.0F;
                f3 = 14.0F;
            case 0:
            case 2:
            default:
                this.setRenderBounds((double)(f / 16.0F + (float)d1), 0.125D, (double)(f2 / 16.0F + (float)d2), (double)(f1 / 16.0F + (float)d1), 0.25D, (double)(f3 / 16.0F + (float)d2));
                double d5 = (double)iicon.getInterpolatedU((double)f);
                double d6 = (double)iicon.getInterpolatedV((double)f2);
                double d7 = (double)iicon.getInterpolatedU((double)f1);
                double d8 = (double)iicon.getInterpolatedV((double)f3);
                tessellator.addVertexWithUV((double)((float)p_147759_2_ + f / 16.0F) + d1, (double)((float)p_147759_3_ + 0.25F), (double)((float)p_147759_4_ + f2 / 16.0F) + d2, d5, d6);
                tessellator.addVertexWithUV((double)((float)p_147759_2_ + f / 16.0F) + d1, (double)((float)p_147759_3_ + 0.25F), (double)((float)p_147759_4_ + f3 / 16.0F) + d2, d5, d8);
                tessellator.addVertexWithUV((double)((float)p_147759_2_ + f1 / 16.0F) + d1, (double)((float)p_147759_3_ + 0.25F), (double)((float)p_147759_4_ + f3 / 16.0F) + d2, d7, d8);
                tessellator.addVertexWithUV((double)((float)p_147759_2_ + f1 / 16.0F) + d1, (double)((float)p_147759_3_ + 0.25F), (double)((float)p_147759_4_ + f2 / 16.0F) + d2, d7, d6);
                this.renderStandardBlock(p_147759_1_, p_147759_2_, p_147759_3_, p_147759_4_);
                this.setRenderBounds(0.0D, 0.0D, 0.0D, 1.0D, 0.125D, 1.0D);
                this.clearOverrideBlockTexture();
        }
    }

    tessellator.setBrightness(p_147759_1_.getMixedBrightnessForBlock(this.blockAccess, p_147759_2_, p_147759_3_, p_147759_4_));
    tessellator.setColorOpaque_F(1.0F, 1.0F, 1.0F);
    this.renderTorchAtAngle(p_147759_1_, (double)p_147759_2_ + d3, (double)p_147759_3_ + d0, (double)p_147759_4_ + d4, 0.0D, 0.0D, 0);
    this.renderBlockRedstoneDiode(p_147759_1_, p_147759_2_, p_147759_3_, p_147759_4_);
    return true;
}
项目: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 renderBlockRepeater(BlockRedstoneRepeater p_147759_1_, int p_147759_2_, int p_147759_3_, int p_147759_4_)
{
    int l = this.blockAccess.getBlockMetadata(p_147759_2_, p_147759_3_, p_147759_4_);
    int i1 = l & 3;
    int j1 = (l & 12) >> 2;
    Tessellator tessellator = Tessellator.instance;
    tessellator.setBrightness(p_147759_1_.getMixedBrightnessForBlock(this.blockAccess, p_147759_2_, p_147759_3_, p_147759_4_));
    tessellator.setColorOpaque_F(1.0F, 1.0F, 1.0F);
    double d0 = -0.1875D;
    boolean flag = p_147759_1_.func_149910_g(this.blockAccess, p_147759_2_, p_147759_3_, p_147759_4_, l);
    double d1 = 0.0D;
    double d2 = 0.0D;
    double d3 = 0.0D;
    double d4 = 0.0D;

    switch (i1)
    {
        case 0:
            d4 = -0.3125D;
            d2 = BlockRedstoneRepeater.repeaterTorchOffset[j1];
            break;
        case 1:
            d3 = 0.3125D;
            d1 = -BlockRedstoneRepeater.repeaterTorchOffset[j1];
            break;
        case 2:
            d4 = 0.3125D;
            d2 = -BlockRedstoneRepeater.repeaterTorchOffset[j1];
            break;
        case 3:
            d3 = -0.3125D;
            d1 = BlockRedstoneRepeater.repeaterTorchOffset[j1];
    }

    if (!flag)
    {
        this.renderTorchAtAngle(p_147759_1_, (double)p_147759_2_ + d1, (double)p_147759_3_ + d0, (double)p_147759_4_ + d2, 0.0D, 0.0D, 0);
    }
    else
    {
        IIcon iicon = this.getBlockIcon(Blocks.bedrock);
        this.setOverrideBlockTexture(iicon);
        float f = 2.0F;
        float f1 = 14.0F;
        float f2 = 7.0F;
        float f3 = 9.0F;

        switch (i1)
        {
            case 1:
            case 3:
                f = 7.0F;
                f1 = 9.0F;
                f2 = 2.0F;
                f3 = 14.0F;
            case 0:
            case 2:
            default:
                this.setRenderBounds((double)(f / 16.0F + (float)d1), 0.125D, (double)(f2 / 16.0F + (float)d2), (double)(f1 / 16.0F + (float)d1), 0.25D, (double)(f3 / 16.0F + (float)d2));
                double d5 = (double)iicon.getInterpolatedU((double)f);
                double d6 = (double)iicon.getInterpolatedV((double)f2);
                double d7 = (double)iicon.getInterpolatedU((double)f1);
                double d8 = (double)iicon.getInterpolatedV((double)f3);
                tessellator.addVertexWithUV((double)((float)p_147759_2_ + f / 16.0F) + d1, (double)((float)p_147759_3_ + 0.25F), (double)((float)p_147759_4_ + f2 / 16.0F) + d2, d5, d6);
                tessellator.addVertexWithUV((double)((float)p_147759_2_ + f / 16.0F) + d1, (double)((float)p_147759_3_ + 0.25F), (double)((float)p_147759_4_ + f3 / 16.0F) + d2, d5, d8);
                tessellator.addVertexWithUV((double)((float)p_147759_2_ + f1 / 16.0F) + d1, (double)((float)p_147759_3_ + 0.25F), (double)((float)p_147759_4_ + f3 / 16.0F) + d2, d7, d8);
                tessellator.addVertexWithUV((double)((float)p_147759_2_ + f1 / 16.0F) + d1, (double)((float)p_147759_3_ + 0.25F), (double)((float)p_147759_4_ + f2 / 16.0F) + d2, d7, d6);
                this.renderStandardBlock(p_147759_1_, p_147759_2_, p_147759_3_, p_147759_4_);
                this.setRenderBounds(0.0D, 0.0D, 0.0D, 1.0D, 0.125D, 1.0D);
                this.clearOverrideBlockTexture();
        }
    }

    tessellator.setBrightness(p_147759_1_.getMixedBrightnessForBlock(this.blockAccess, p_147759_2_, p_147759_3_, p_147759_4_));
    tessellator.setColorOpaque_F(1.0F, 1.0F, 1.0F);
    this.renderTorchAtAngle(p_147759_1_, (double)p_147759_2_ + d3, (double)p_147759_3_ + d0, (double)p_147759_4_ + d4, 0.0D, 0.0D, 0);
    this.renderBlockRedstoneDiode(p_147759_1_, p_147759_2_, p_147759_3_, p_147759_4_);
    return true;
}
项目:RuneCraftery    文件:RenderBlocks.java   
public boolean func_78610_x(BlockRedstoneRepeater p_78610_1_, int p_78610_2_, int p_78610_3_, int p_78610_4_) {
   int var5 = this.field_78669_a.func_72805_g(p_78610_2_, p_78610_3_, p_78610_4_);
   int var6 = var5 & 3;
   int var7 = (var5 & 12) >> 2;
   Tessellator var8 = Tessellator.field_78398_a;
   var8.func_78380_c(p_78610_1_.func_71874_e(this.field_78669_a, p_78610_2_, p_78610_3_, p_78610_4_));
   var8.func_78386_a(1.0F, 1.0F, 1.0F);
   double var9 = -0.1875D;
   boolean var11 = p_78610_1_.func_94476_e(this.field_78669_a, p_78610_2_, p_78610_3_, p_78610_4_, var5);
   double var12 = 0.0D;
   double var14 = 0.0D;
   double var16 = 0.0D;
   double var18 = 0.0D;
   switch(var6) {
   case 0:
      var18 = -0.3125D;
      var14 = BlockRedstoneRepeater.field_72223_a[var7];
      break;
   case 1:
      var16 = 0.3125D;
      var12 = -BlockRedstoneRepeater.field_72223_a[var7];
      break;
   case 2:
      var18 = 0.3125D;
      var14 = -BlockRedstoneRepeater.field_72223_a[var7];
      break;
   case 3:
      var16 = -0.3125D;
      var12 = BlockRedstoneRepeater.field_72223_a[var7];
   }

   if(!var11) {
      this.func_78623_a(p_78610_1_, (double)p_78610_2_ + var12, (double)p_78610_3_ + var9, (double)p_78610_4_ + var14, 0.0D, 0.0D, 0);
   } else {
      Icon var20 = this.func_94175_b(Block.field_71986_z);
      this.func_82774_a(var20);
      float var21 = 2.0F;
      float var22 = 14.0F;
      float var23 = 7.0F;
      float var24 = 9.0F;
      switch(var6) {
      case 1:
      case 3:
         var21 = 7.0F;
         var22 = 9.0F;
         var23 = 2.0F;
         var24 = 14.0F;
      case 0:
      case 2:
      default:
         this.func_83020_a((double)(var21 / 16.0F + (float)var12), 0.125D, (double)(var23 / 16.0F + (float)var14), (double)(var22 / 16.0F + (float)var12), 0.25D, (double)(var24 / 16.0F + (float)var14));
         double var25 = (double)var20.func_94214_a((double)var21);
         double var27 = (double)var20.func_94207_b((double)var23);
         double var29 = (double)var20.func_94214_a((double)var22);
         double var31 = (double)var20.func_94207_b((double)var24);
         var8.func_78374_a((double)((float)p_78610_2_ + var21 / 16.0F) + var12, (double)((float)p_78610_3_ + 0.25F), (double)((float)p_78610_4_ + var23 / 16.0F) + var14, var25, var27);
         var8.func_78374_a((double)((float)p_78610_2_ + var21 / 16.0F) + var12, (double)((float)p_78610_3_ + 0.25F), (double)((float)p_78610_4_ + var24 / 16.0F) + var14, var25, var31);
         var8.func_78374_a((double)((float)p_78610_2_ + var22 / 16.0F) + var12, (double)((float)p_78610_3_ + 0.25F), (double)((float)p_78610_4_ + var24 / 16.0F) + var14, var29, var31);
         var8.func_78374_a((double)((float)p_78610_2_ + var22 / 16.0F) + var12, (double)((float)p_78610_3_ + 0.25F), (double)((float)p_78610_4_ + var23 / 16.0F) + var14, var29, var27);
         this.func_78570_q(p_78610_1_, p_78610_2_, p_78610_3_, p_78610_4_);
         this.func_83020_a(0.0D, 0.0D, 0.0D, 1.0D, 0.125D, 1.0D);
         this.func_78595_a();
      }
   }

   var8.func_78380_c(p_78610_1_.func_71874_e(this.field_78669_a, p_78610_2_, p_78610_3_, p_78610_4_));
   var8.func_78386_a(1.0F, 1.0F, 1.0F);
   this.func_78623_a(p_78610_1_, (double)p_78610_2_ + var16, (double)p_78610_3_ + var9, (double)p_78610_4_ + var18, 0.0D, 0.0D, 0);
   this.func_94176_a(p_78610_1_, p_78610_2_, p_78610_3_, p_78610_4_);
   return true;
}
项目:RuneCraftery    文件:RotationHelper.java   
public static ForgeDirection[] getValidVanillaBlockRotations(Block block)
{
    return (block instanceof BlockBed || block instanceof BlockPumpkin || block instanceof BlockFenceGate || block instanceof BlockEndPortalFrame || block instanceof BlockTripWireSource || block instanceof BlockCocoa || block instanceof BlockRailPowered || block instanceof BlockDetectorRail || block instanceof BlockStairs || block instanceof BlockChest || block instanceof BlockEnderChest || block instanceof BlockFurnace || block instanceof BlockLadder || block.blockID == Block.signWall.blockID || block.blockID == Block.signPost.blockID || block instanceof BlockDoor || block instanceof BlockRail || block instanceof BlockButton || block instanceof BlockRedstoneRepeater || block instanceof BlockComparator || block instanceof BlockTrapDoor || block instanceof BlockMushroomCap || block instanceof BlockVine || block instanceof BlockSkull || block instanceof BlockAnvil) ? UP_DOWN_AXES : VALID_DIRECTIONS;
}
项目: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);
        }
    }
}
项目:RuneCraftery    文件:RotationHelper.java   
public static ForgeDirection[] getValidVanillaBlockRotations(Block block)
{
    return (block instanceof BlockBed || block instanceof BlockPumpkin || block instanceof BlockFenceGate || block instanceof BlockEndPortalFrame || block instanceof BlockTripWireSource || block instanceof BlockCocoa || block instanceof BlockRailPowered || block instanceof BlockDetectorRail || block instanceof BlockStairs || block instanceof BlockChest || block instanceof BlockEnderChest || block instanceof BlockFurnace || block instanceof BlockLadder || block.blockID == Block.signWall.blockID || block.blockID == Block.signPost.blockID || block instanceof BlockDoor || block instanceof BlockRail || block instanceof BlockButton || block instanceof BlockRedstoneRepeater || block instanceof BlockComparator || block instanceof BlockTrapDoor || block instanceof BlockMushroomCap || block instanceof BlockVine || block instanceof BlockSkull || block instanceof BlockAnvil) ? UP_DOWN_AXES : VALID_DIRECTIONS;
}
项目:BetterNutritionMod    文件:RotationHelper.java   
public static ForgeDirection[] getValidVanillaBlockRotations(Block block)
{
    return (block instanceof BlockBed || block instanceof BlockPumpkin || block instanceof BlockFenceGate || block instanceof BlockEndPortalFrame || block instanceof BlockTripWireSource || block instanceof BlockCocoa || block instanceof BlockRailPowered || block instanceof BlockDetectorRail || block instanceof BlockStairs || block instanceof BlockChest || block instanceof BlockEnderChest || block instanceof BlockFurnace || block instanceof BlockLadder || block.blockID == Block.signWall.blockID || block.blockID == Block.signPost.blockID || block instanceof BlockDoor || block instanceof BlockRail || block instanceof BlockButton || block instanceof BlockRedstoneRepeater || block instanceof BlockComparator || block instanceof BlockTrapDoor || block instanceof BlockMushroomCap || block instanceof BlockVine || block instanceof BlockSkull || block instanceof BlockAnvil) ? UP_DOWN_AXES : VALID_DIRECTIONS;
}
项目: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);
        }
    }
}