本文整理匯總了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);
}
示例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;
}
}
示例3: renderStatic
@Override
public boolean renderStatic(Vector3 pos, BlockRenderLayer layer, CCRenderState ccrs) {
if (layer == BlockRenderLayer.SOLID) {
RenderWireless.renderWorld(ccrs, this);
return true;
}
return false;
}
示例4: canRenderInLayer
@Override
public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer) {
return layer == BlockRenderLayer.SOLID;
}
示例5: canRenderInLayer
@Override
public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer)
{
return layer == BlockRenderLayer.SOLID || layer == BlockRenderLayer.TRANSLUCENT;
}
示例6: canRenderInLayer
@Override
public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer) {
return layer == BlockRenderLayer.CUTOUT_MIPPED || layer == BlockRenderLayer.SOLID;
}
示例7: canRenderInLayer
@Override
public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer) {
return layer == BlockRenderLayer.SOLID || layer == BlockRenderLayer.CUTOUT_MIPPED;
}
示例8: getBlockLayer
@SideOnly(Side.CLIENT)
@Override
public BlockRenderLayer getBlockLayer() {
//return BlockRenderLayer.TRANSLUCENT; //That didn't wind up working so well.
return BlockRenderLayer.SOLID;
}
示例9: getBlockLayer
public BlockRenderLayer getBlockLayer()
{
return BlockRenderLayer.SOLID;
}
示例10: getBlockLayer
public BlockRenderLayer getBlockLayer()
{
return this.leavesFancy ? BlockRenderLayer.CUTOUT_MIPPED : BlockRenderLayer.SOLID;
}
示例11: getBlockLayer
public BlockRenderLayer getBlockLayer()
{
return this.blockMaterial == Material.WATER ? BlockRenderLayer.TRANSLUCENT : BlockRenderLayer.SOLID;
}
示例12: getBlockLayer
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
return BlockRenderLayer.SOLID;
}
示例13: getBlockLayer
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
return this.leavesFancy ? BlockRenderLayer.CUTOUT_MIPPED : BlockRenderLayer.SOLID;
}
示例14: getBlockLayer
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
return this.blockMaterial == Material.WATER ? BlockRenderLayer.TRANSLUCENT : BlockRenderLayer.SOLID;
}