本文整理匯總了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;
}