BrightnessCombiner.java
net.minecraft.client.renderer.blockentity.BrightnessCombiner
信息
- 全限定名:net.minecraft.client.renderer.blockentity.BrightnessCombiner
- 类型:public class
- 包:net.minecraft.client.renderer.blockentity
- 源码路径:src/main/java/net/minecraft/client/renderer/blockentity/BrightnessCombiner.java
- 起始行号:L12
- 实现:DoubleBlockCombiner.Combiner<S,Int2IntFunction>
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public Int2IntFunction acceptDouble(S first, S second) @ L13
- 方法名:acceptDouble
- 源码定位:L13
- 返回类型:Int2IntFunction
- 修饰符:public
参数:
- first: S
- second: S
说明:
TODO
public Int2IntFunction acceptSingle(S single) @ L19
- 方法名:acceptSingle
- 源码定位:L19
- 返回类型:Int2IntFunction
- 修饰符:public
参数:
- single: S
说明:
TODO
public Int2IntFunction acceptNone() @ L23
- 方法名:acceptNone
- 源码定位:L23
- 返回类型:Int2IntFunction
- 修饰符:public
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public class BrightnessCombiner<S extends BlockEntity> implements DoubleBlockCombiner.Combiner<S, Int2IntFunction> {
public Int2IntFunction acceptDouble(S first, S second) {
return i -> LightCoordsUtil.max(
LevelRenderer.getLightCoords(first.getLevel(), first.getBlockPos()), LevelRenderer.getLightCoords(second.getLevel(), second.getBlockPos())
);
}
public Int2IntFunction acceptSingle(S single) {
return i -> i;
}
public Int2IntFunction acceptNone() {
return i -> i;
}
}引用的其他类
-
- 引用位置:
方法调用 - 关联成员:
LevelRenderer.getLightCoords()
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
LightCoordsUtil.max()
- 引用位置:
-
- 引用位置:
实现
- 引用位置: