当前位置: 首页>>代码示例>>Java>>正文


Java BlockRenderLayer.SOLID属性代码示例

本文整理汇总了Java中net.minecraft.util.BlockRenderLayer.SOLID属性的典型用法代码示例。如果您正苦于以下问题:Java BlockRenderLayer.SOLID属性的具体用法?Java BlockRenderLayer.SOLID怎么用?Java BlockRenderLayer.SOLID使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在net.minecraft.util.BlockRenderLayer的用法示例。


在下文中一共展示了BlockRenderLayer.SOLID属性的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: deserialize

@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);
}
 
开发者ID:cubex2,项目名称:customstuff4,代码行数:22,代码来源:BlockRenderLayerDeserializer.java

示例2: isValidOverlay

private boolean isValidOverlay(String p_isValidOverlay_1_)
{
    if (this.tiles == null)
    {
        this.tiles = this.parseTileNames("0-16");
    }

    if (this.tiles.length < 17)
    {
        Config.warn("Invalid tiles, must be at least 17: " + p_isValidOverlay_1_);
        return false;
    }
    else if (this.layer != null && this.layer != BlockRenderLayer.SOLID)
    {
        return true;
    }
    else
    {
        Config.warn("Invalid overlay layer: " + this.layer);
        return false;
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:22,代码来源:ConnectedProperties.java

示例3: renderStatic

@Override
public boolean renderStatic(Vector3 pos, BlockRenderLayer layer, CCRenderState ccrs) {
    if (layer == BlockRenderLayer.SOLID) {
        RenderWireless.renderWorld(ccrs, this);
        return true;
    }
    return false;
}
 
开发者ID:TheCBProject,项目名称:WirelessRedstone,代码行数:8,代码来源:WirelessPart.java

示例4: canRenderInLayer

@Override
public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer) {
	return layer == BlockRenderLayer.SOLID;
}
 
开发者ID:trigg,项目名称:Firma,代码行数:4,代码来源:BaseBlock.java

示例5: canRenderInLayer

@Override
public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer)
   {
	return layer == BlockRenderLayer.SOLID || layer == BlockRenderLayer.TRANSLUCENT;
   }
 
开发者ID:raphydaphy,项目名称:ArcaneMagic,代码行数:5,代码来源:BlockAnalyzer.java

示例6: canRenderInLayer

@Override
public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer) {
	return layer == BlockRenderLayer.CUTOUT_MIPPED || layer == BlockRenderLayer.SOLID;
}
 
开发者ID:ArekkuusuJerii,项目名称:Solar,代码行数:4,代码来源:BlockHyperConductor.java

示例7: canRenderInLayer

@Override
public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer) {
	return layer == BlockRenderLayer.SOLID || layer == BlockRenderLayer.CUTOUT_MIPPED;
}
 
开发者ID:ArekkuusuJerii,项目名称:Solar,代码行数:4,代码来源:BlockMonolithicGlyph.java

示例8: getBlockLayer

@SideOnly(Side.CLIENT)
@Override
public BlockRenderLayer getBlockLayer() {
	//return BlockRenderLayer.TRANSLUCENT; //That didn't wind up working so well.
	return BlockRenderLayer.SOLID;
}
 
开发者ID:elytra,项目名称:Thermionics,代码行数:6,代码来源:BlockDrum.java

示例9: getBlockLayer

public BlockRenderLayer getBlockLayer()
{
    return BlockRenderLayer.SOLID;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:4,代码来源:Block.java

示例10: getBlockLayer

public BlockRenderLayer getBlockLayer()
{
    return this.leavesFancy ? BlockRenderLayer.CUTOUT_MIPPED : BlockRenderLayer.SOLID;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:4,代码来源:BlockLeaves.java

示例11: getBlockLayer

public BlockRenderLayer getBlockLayer()
{
    return this.blockMaterial == Material.WATER ? BlockRenderLayer.TRANSLUCENT : BlockRenderLayer.SOLID;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:4,代码来源:BlockLiquid.java

示例12: getBlockLayer

@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
    return BlockRenderLayer.SOLID;
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:5,代码来源:Block.java

示例13: getBlockLayer

@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
    return this.leavesFancy ? BlockRenderLayer.CUTOUT_MIPPED : BlockRenderLayer.SOLID;
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:5,代码来源:BlockLeaves.java

示例14: getBlockLayer

@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
    return this.blockMaterial == Material.WATER ? BlockRenderLayer.TRANSLUCENT : BlockRenderLayer.SOLID;
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:5,代码来源:BlockLiquid.java


注:本文中的net.minecraft.util.BlockRenderLayer.SOLID属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。