本文整理汇总了Java中net.minecraft.util.BlockRenderLayer.ordinal方法的典型用法代码示例。如果您正苦于以下问题:Java BlockRenderLayer.ordinal方法的具体用法?Java BlockRenderLayer.ordinal怎么用?Java BlockRenderLayer.ordinal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.util.BlockRenderLayer
的用法示例。
在下文中一共展示了BlockRenderLayer.ordinal方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: postRenderOverlay
import net.minecraft.util.BlockRenderLayer; //导入方法依赖的package包/类
private void postRenderOverlay(BlockRenderLayer p_postRenderOverlay_1_, RegionRenderCacheBuilder p_postRenderOverlay_2_, CompiledChunk p_postRenderOverlay_3_, boolean[] p_postRenderOverlay_4_)
{
net.minecraft.client.renderer.VertexBuffer vertexbuffer = p_postRenderOverlay_2_.getWorldRendererByLayer(p_postRenderOverlay_1_);
if (vertexbuffer.isDrawing())
{
p_postRenderOverlay_3_.setLayerStarted(p_postRenderOverlay_1_);
p_postRenderOverlay_4_[p_postRenderOverlay_1_.ordinal()] = true;
}
}
示例2: getListQuadsOverlay
import net.minecraft.util.BlockRenderLayer; //导入方法依赖的package包/类
public ListQuadsOverlay getListQuadsOverlay(BlockRenderLayer p_getListQuadsOverlay_1_)
{
ListQuadsOverlay listquadsoverlay = this.listsQuadsOverlay[p_getListQuadsOverlay_1_.ordinal()];
if (listquadsoverlay == null)
{
listquadsoverlay = new ListQuadsOverlay();
this.listsQuadsOverlay[p_getListQuadsOverlay_1_.ordinal()] = listquadsoverlay;
}
return listquadsoverlay;
}
示例3: getWorldRendererByLayer
import net.minecraft.util.BlockRenderLayer; //导入方法依赖的package包/类
public VertexBuffer getWorldRendererByLayer(BlockRenderLayer layer)
{
return this.worldRenderers[layer.ordinal()];
}
示例4: setLayerUsed
import net.minecraft.util.BlockRenderLayer; //导入方法依赖的package包/类
protected void setLayerUsed(BlockRenderLayer layer)
{
this.empty = false;
this.layersUsed[layer.ordinal()] = true;
}
示例5: isLayerEmpty
import net.minecraft.util.BlockRenderLayer; //导入方法依赖的package包/类
public boolean isLayerEmpty(BlockRenderLayer layer)
{
return !this.layersUsed[layer.ordinal()];
}
示例6: setLayerStarted
import net.minecraft.util.BlockRenderLayer; //导入方法依赖的package包/类
public void setLayerStarted(BlockRenderLayer layer)
{
this.layersStarted[layer.ordinal()] = true;
}
示例7: isLayerStarted
import net.minecraft.util.BlockRenderLayer; //导入方法依赖的package包/类
public boolean isLayerStarted(BlockRenderLayer layer)
{
return this.layersStarted[layer.ordinal()];
}
示例8: getDisplayList
import net.minecraft.util.BlockRenderLayer; //导入方法依赖的package包/类
public int getDisplayList(BlockRenderLayer layer, CompiledChunk p_178600_2_)
{
return !p_178600_2_.isLayerEmpty(layer) ? this.baseDisplayList + layer.ordinal() : -1;
}