當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。