CubeListBuilder.java
net.minecraft.client.model.geom.builders.CubeListBuilder
信息
- 全限定名:net.minecraft.client.model.geom.builders.CubeListBuilder
- 类型:public class
- 包:net.minecraft.client.model.geom.builders
- 源码路径:src/main/java/net/minecraft/client/model/geom/builders/CubeListBuilder.java
- 起始行号:L13
- 职责:
TODO
字段/常量
-
ALL_VISIBLE- 类型:
Set<Direction> - 修饰符:
private static final - 源码定位:
L14 - 说明:
TODO
- 类型:
-
cubes- 类型:
List<CubeDefinition> - 修饰符:
private final - 源码定位:
L15 - 说明:
TODO
- 类型:
-
xTexOffs- 类型:
int - 修饰符:
private - 源码定位:
L16 - 说明:
TODO
- 类型:
-
yTexOffs- 类型:
int - 修饰符:
private - 源码定位:
L17 - 说明:
TODO
- 类型:
-
mirror- 类型:
boolean - 修饰符:
private - 源码定位:
L18 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public CubeListBuilder texOffs(int xTexOffs, int yTexOffs) @ L20
- 方法名:texOffs
- 源码定位:L20
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- xTexOffs: int
- yTexOffs: int
说明:
TODO
public CubeListBuilder mirror() @ L26
- 方法名:mirror
- 源码定位:L26
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- 无
说明:
TODO
public CubeListBuilder mirror(boolean mirror) @ L30
- 方法名:mirror
- 源码定位:L30
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- mirror: boolean
说明:
TODO
public CubeListBuilder addBox(String id, float x0, float y0, float z0, int w, int h, int d, CubeDeformation g, int xTexOffs, int yTexOffs) @ L35
- 方法名:addBox
- 源码定位:L35
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- id: String
- x0: float
- y0: float
- z0: float
- w: int
- h: int
- d: int
- g: CubeDeformation
- xTexOffs: int
- yTexOffs: int
说明:
TODO
public CubeListBuilder addBox(String id, float x0, float y0, float z0, int w, int h, int d, int xTexOffs, int yTexOffs) @ L41
- 方法名:addBox
- 源码定位:L41
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- id: String
- x0: float
- y0: float
- z0: float
- w: int
- h: int
- d: int
- xTexOffs: int
- yTexOffs: int
说明:
TODO
public CubeListBuilder addBox(float x0, float y0, float z0, float w, float h, float d) @ L47
- 方法名:addBox
- 源码定位:L47
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- x0: float
- y0: float
- z0: float
- w: float
- h: float
- d: float
说明:
TODO
public CubeListBuilder addBox(float x0, float y0, float z0, float w, float h, float d, Set<Direction> visibleSides) @ L52
- 方法名:addBox
- 源码定位:L52
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- x0: float
- y0: float
- z0: float
- w: float
- h: float
- d: float
- visibleSides: Set
说明:
TODO
public CubeListBuilder addBox(String id, float x0, float y0, float z0, float w, float h, float d) @ L58
- 方法名:addBox
- 源码定位:L58
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- id: String
- x0: float
- y0: float
- z0: float
- w: float
- h: float
- d: float
说明:
TODO
public CubeListBuilder addBox(String id, float x0, float y0, float z0, float w, float h, float d, CubeDeformation g) @ L63
- 方法名:addBox
- 源码定位:L63
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- id: String
- x0: float
- y0: float
- z0: float
- w: float
- h: float
- d: float
- g: CubeDeformation
说明:
TODO
public CubeListBuilder addBox(float x0, float y0, float z0, float w, float h, float d, boolean mirror) @ L68
- 方法名:addBox
- 源码定位:L68
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- x0: float
- y0: float
- z0: float
- w: float
- h: float
- d: float
- mirror: boolean
说明:
TODO
public CubeListBuilder addBox(float x0, float y0, float z0, float w, float h, float d, CubeDeformation g, float xTexScale, float yTexScale) @ L73
- 方法名:addBox
- 源码定位:L73
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- x0: float
- y0: float
- z0: float
- w: float
- h: float
- d: float
- g: CubeDeformation
- xTexScale: float
- yTexScale: float
说明:
TODO
public CubeListBuilder addBox(float x0, float y0, float z0, float w, float h, float d, CubeDeformation g) @ L78
- 方法名:addBox
- 源码定位:L78
- 返回类型:CubeListBuilder
- 修饰符:public
参数:
- x0: float
- y0: float
- z0: float
- w: float
- h: float
- d: float
- g: CubeDeformation
说明:
TODO
public List<CubeDefinition> getCubes() @ L83
- 方法名:getCubes
- 源码定位:L83
- 返回类型:List
- 修饰符:public
参数:
- 无
说明:
TODO
public static CubeListBuilder create() @ L87
- 方法名:create
- 源码定位:L87
- 返回类型:CubeListBuilder
- 修饰符:public static
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public class CubeListBuilder {
private static final Set<Direction> ALL_VISIBLE = EnumSet.allOf(Direction.class);
private final List<CubeDefinition> cubes = Lists.newArrayList();
private int xTexOffs;
private int yTexOffs;
private boolean mirror;
public CubeListBuilder texOffs(int xTexOffs, int yTexOffs) {
this.xTexOffs = xTexOffs;
this.yTexOffs = yTexOffs;
return this;
}
public CubeListBuilder mirror() {
return this.mirror(true);
}
public CubeListBuilder mirror(boolean mirror) {
this.mirror = mirror;
return this;
}
public CubeListBuilder addBox(String id, float x0, float y0, float z0, int w, int h, int d, CubeDeformation g, int xTexOffs, int yTexOffs) {
this.texOffs(xTexOffs, yTexOffs);
this.cubes.add(new CubeDefinition(id, this.xTexOffs, this.yTexOffs, x0, y0, z0, w, h, d, g, this.mirror, 1.0F, 1.0F, ALL_VISIBLE));
return this;
}
public CubeListBuilder addBox(String id, float x0, float y0, float z0, int w, int h, int d, int xTexOffs, int yTexOffs) {
this.texOffs(xTexOffs, yTexOffs);
this.cubes.add(new CubeDefinition(id, this.xTexOffs, this.yTexOffs, x0, y0, z0, w, h, d, CubeDeformation.NONE, this.mirror, 1.0F, 1.0F, ALL_VISIBLE));
return this;
}
public CubeListBuilder addBox(float x0, float y0, float z0, float w, float h, float d) {
this.cubes.add(new CubeDefinition(null, this.xTexOffs, this.yTexOffs, x0, y0, z0, w, h, d, CubeDeformation.NONE, this.mirror, 1.0F, 1.0F, ALL_VISIBLE));
return this;
}
public CubeListBuilder addBox(float x0, float y0, float z0, float w, float h, float d, Set<Direction> visibleSides) {
this.cubes
.add(new CubeDefinition(null, this.xTexOffs, this.yTexOffs, x0, y0, z0, w, h, d, CubeDeformation.NONE, this.mirror, 1.0F, 1.0F, visibleSides));
return this;
}
public CubeListBuilder addBox(String id, float x0, float y0, float z0, float w, float h, float d) {
this.cubes.add(new CubeDefinition(id, this.xTexOffs, this.yTexOffs, x0, y0, z0, w, h, d, CubeDeformation.NONE, this.mirror, 1.0F, 1.0F, ALL_VISIBLE));
return this;
}
public CubeListBuilder addBox(String id, float x0, float y0, float z0, float w, float h, float d, CubeDeformation g) {
this.cubes.add(new CubeDefinition(id, this.xTexOffs, this.yTexOffs, x0, y0, z0, w, h, d, g, this.mirror, 1.0F, 1.0F, ALL_VISIBLE));
return this;
}
public CubeListBuilder addBox(float x0, float y0, float z0, float w, float h, float d, boolean mirror) {
this.cubes.add(new CubeDefinition(null, this.xTexOffs, this.yTexOffs, x0, y0, z0, w, h, d, CubeDeformation.NONE, mirror, 1.0F, 1.0F, ALL_VISIBLE));
return this;
}
public CubeListBuilder addBox(float x0, float y0, float z0, float w, float h, float d, CubeDeformation g, float xTexScale, float yTexScale) {
this.cubes.add(new CubeDefinition(null, this.xTexOffs, this.yTexOffs, x0, y0, z0, w, h, d, g, this.mirror, xTexScale, yTexScale, ALL_VISIBLE));
return this;
}
public CubeListBuilder addBox(float x0, float y0, float z0, float w, float h, float d, CubeDeformation g) {
this.cubes.add(new CubeDefinition(null, this.xTexOffs, this.yTexOffs, x0, y0, z0, w, h, d, g, this.mirror, 1.0F, 1.0F, ALL_VISIBLE));
return this;
}
public List<CubeDefinition> getCubes() {
return ImmutableList.copyOf(this.cubes);
}
public static CubeListBuilder create() {
return new CubeListBuilder();
}
}引用的其他类
-
- 引用位置:
字段/构造调用/返回值 - 关联成员:
CubeDefinition()
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数/字段
- 引用位置: