本文整理汇总了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;
}