Java Code Examples for net.minecraft.util.BlockRenderLayer#CUTOUT_MIPPED

The following examples show how to use net.minecraft.util.BlockRenderLayer#CUTOUT_MIPPED . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BlockRenderLayerDeserializer.java    From customstuff4 with GNU General Public License v3.0 6 votes vote down vote up
@Override
public BlockRenderLayer deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException
{
    if (json.isJsonPrimitive())
    {
        JsonPrimitive primitive = json.getAsJsonPrimitive();
        if (primitive.isString())
        {
            String string = primitive.getAsString();
            if (string.equals("solid"))
                return BlockRenderLayer.SOLID;
            if (string.equals("mippedCutout"))
                return BlockRenderLayer.CUTOUT_MIPPED;
            if (string.equals("cutout"))
                return BlockRenderLayer.CUTOUT;
            if (string.equals("translucent"))
                return BlockRenderLayer.TRANSLUCENT;
        }
    }

    throw new JsonParseException("Invalid block render layer: " + json);
}
 
Example 2
Source File: BlockGrass.java    From TFC2 with GNU General Public License v3.0 5 votes vote down vote up
/*******************************************************************************
 * 2. Rendering
 *******************************************************************************/


@Override
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
	return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 3
Source File: GTBlockBaseConnect.java    From GT-Classic with GNU Lesser General Public License v3.0 4 votes vote down vote up
@SideOnly(Side.CLIENT)
@Override
public BlockRenderLayer getBlockLayer() {
	return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 4
Source File: BlockSeedAnalyzer.java    From AgriCraft with MIT License 4 votes vote down vote up
@Override
public BlockRenderLayer getBlockLayer() {
    return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 5
Source File: BlockCrop.java    From AgriCraft with MIT License 4 votes vote down vote up
@Override
public BlockRenderLayer getBlockLayer() {
    return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 6
Source File: BlockLeaves.java    From TFC2 with GNU General Public License v3.0 4 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
	return this.isTransparent ? BlockRenderLayer.CUTOUT_MIPPED : BlockRenderLayer.SOLID;
}
 
Example 7
Source File: BlockAlienLeaves.java    From AdvancedRocketry with MIT License 4 votes vote down vote up
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
    return super.leavesFancy ? BlockRenderLayer.CUTOUT_MIPPED : BlockRenderLayer.SOLID;
}
 
Example 8
Source File: BlockTorikkiGrass.java    From Wizardry with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Nonnull
@Override
@SideOnly(Side.CLIENT)
public BlockRenderLayer getRenderLayer() {
	return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 9
Source File: GTBlockBaseOre.java    From GT-Classic with GNU Lesser General Public License v3.0 4 votes vote down vote up
@SideOnly(Side.CLIENT)
@Override
public BlockRenderLayer getBlockLayer() {
	return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 10
Source File: BlockApricotLeaves.java    From TofuCraftReload with MIT License 4 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer() {
    return Minecraft.getMinecraft().gameSettings.fancyGraphics ? BlockRenderLayer.CUTOUT_MIPPED : BlockRenderLayer.SOLID;
}
 
Example 11
Source File: BlockOre.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public BlockRenderLayer getBlockLayer() {
    return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 12
Source File: BlockFoam.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public BlockRenderLayer getBlockLayer() {
    return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 13
Source File: BlockFrame.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public BlockRenderLayer getBlockLayer() {
    return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 14
Source File: BuiltInRenderBlock.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public BlockRenderLayer getBlockLayer() {
    return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 15
Source File: BlockKitunebi.java    From Sakura_mod with MIT License 4 votes vote down vote up
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer() {
    return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 16
Source File: BlockBambooLantern.java    From Sakura_mod with MIT License 4 votes vote down vote up
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer() {
    return BlockRenderLayer.CUTOUT_MIPPED;
}
 
Example 17
Source File: BlockTofuLeaves.java    From TofuCraftReload with MIT License 4 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer() {
    return Minecraft.getMinecraft().gameSettings.fancyGraphics ? BlockRenderLayer.CUTOUT_MIPPED : BlockRenderLayer.SOLID;
}