Java 类net.minecraft.client.renderer.RenderList 实例源码

项目:Cauldron    文件:RenderDistanceSorter.java   
public int compare(RenderList p_compare_1_, RenderList p_compare_2_)
{
    int i = p_compare_1_.renderChunkX - this.field_152632_a;
    int j = p_compare_1_.renderChunkZ - this.field_152633_b;
    int k = p_compare_2_.renderChunkX - this.field_152632_a;
    int l = p_compare_2_.renderChunkZ - this.field_152633_b;
    int i1 = i * i + j * j;
    int j1 = k * k + l * l;
    return ComparisonChain.start().compare(j1, i1).result();
}
项目:Cauldron    文件:RenderDistanceSorter.java   
public int compare(RenderList p_compare_1_, RenderList p_compare_2_)
{
    int i = p_compare_1_.renderChunkX - this.field_152632_a;
    int j = p_compare_1_.renderChunkZ - this.field_152633_b;
    int k = p_compare_2_.renderChunkX - this.field_152632_a;
    int l = p_compare_2_.renderChunkZ - this.field_152633_b;
    int i1 = i * i + j * j;
    int j1 = k * k + l * l;
    return ComparisonChain.start().compare(j1, i1).result();
}
项目:Resilience-Client-Source    文件:RenderDistanceSorter.java   
public int compare(RenderList p_147714_1_, RenderList p_147714_2_)
{
    int var3 = p_147714_2_.renderChunkX * p_147714_2_.renderChunkX + p_147714_2_.renderChunkY * p_147714_2_.renderChunkY + p_147714_2_.renderChunkZ * p_147714_2_.renderChunkZ;
    int var4 = p_147714_1_.renderChunkX * p_147714_1_.renderChunkX + p_147714_1_.renderChunkY * p_147714_1_.renderChunkY + p_147714_1_.renderChunkZ * p_147714_1_.renderChunkZ;
    return ComparisonChain.start().compare(var3, var4).result();
}
项目:Resilience-Client-Source    文件:RenderDistanceSorter.java   
public int compare(Object par1Obj, Object par2Obj)
{
    return this.compare((RenderList)par1Obj, (RenderList)par2Obj);
}
项目:Cauldron    文件:RenderDistanceSorter.java   
public int compare(Object p_compare_1_, Object p_compare_2_)
{
    return this.compare((RenderList)p_compare_1_, (RenderList)p_compare_2_);
}
项目:Cauldron    文件:RenderDistanceSorter.java   
public int compare(Object p_compare_1_, Object p_compare_2_)
{
    return this.compare((RenderList)p_compare_1_, (RenderList)p_compare_2_);
}