java.lang.Object
committee.nova.mods.avaritia.api.client.model.Quad
- 所有已实现的接口:
IVertexConsumer,IVertexProducer
A simple easy to manipulate quad format. Can be reset and then used on a different format.
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明booleanbooleannet.minecraft.core.Directionnet.minecraft.client.renderer.texture.TextureAtlasSpriteint -
构造器概要
构造器构造器说明Quad()Use this if you reset the quad each time you use it.Quad(CachedFormat format) use this if you want to initialize the quad with a format. -
方法概要
修饰符和类型方法说明net.minecraft.client.renderer.block.model.BakedQuadbake()Bakes this Quad to a BakedQuad.voidcalculateOrientation(boolean setNormal) Re-calculates the Orientation of this quad, optionally the normal vector.voidClamps the Quad inside the box.voidclamp(net.minecraft.world.phys.AABB bb) Clamps the Quad inside the box.copy()Used to create a new quad complete copy of this one.Copies the data inside the given quad to this one.com.mojang.blaze3d.vertex.VertexFormatvoidpipe(IVertexConsumer consumer) voidput(int element, float... data) voidAssumes the data is already completely unpacked.voidreset(CachedFormat format) Reset the quad to the new format.resetInterp(InterpHelper helper, int s) Used to reset the interpolation values inside the provided helper.voidrewind()Rewind this Quad without completely resetting it.voidsetApplyDiffuseLighting(boolean diffuse) voidsetQuadOrientation(net.minecraft.core.Direction orientation) voidsetQuadTint(int tint) voidsetTexture(net.minecraft.client.renderer.texture.TextureAtlasSprite texture) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 committee.nova.mods.avaritia.api.client.model.IVertexConsumer
put
-
字段详细资料
-
format
-
tintIndex
public int tintIndex -
orientation
public net.minecraft.core.Direction orientation -
diffuseLighting
public boolean diffuseLighting -
sprite
public net.minecraft.client.renderer.texture.TextureAtlasSprite sprite -
vertices
-
full
public boolean full
-
-
构造器详细资料
-
Quad
public Quad()Use this if you reset the quad each time you use it. -
Quad
use this if you want to initialize the quad with a format.- 参数:
format- The format.
-
-
方法详细资料
-
getVertexFormat
public com.mojang.blaze3d.vertex.VertexFormat getVertexFormat()- 指定者:
getVertexFormat在接口中IVertexConsumer
-
setQuadTint
public void setQuadTint(int tint) - 指定者:
setQuadTint在接口中IVertexConsumer
-
setQuadOrientation
public void setQuadOrientation(net.minecraft.core.Direction orientation) - 指定者:
setQuadOrientation在接口中IVertexConsumer
-
setApplyDiffuseLighting
public void setApplyDiffuseLighting(boolean diffuse) - 指定者:
setApplyDiffuseLighting在接口中IVertexConsumer
-
setTexture
public void setTexture(net.minecraft.client.renderer.texture.TextureAtlasSprite texture) - 指定者:
setTexture在接口中IVertexConsumer
-
put
public void put(int element, float... data) - 指定者:
put在接口中IVertexConsumer
-
put
从接口复制的说明:IVertexConsumerAssumes the data is already completely unpacked. You must always copy the data from the quad provided to an internal cache. basically: this.quad.put(quad);- 指定者:
put在接口中IVertexConsumer- 参数:
quad- The quad to copy data from.
-
pipe
- 指定者:
pipe在接口中IVertexProducer- 参数:
consumer- consumer to receive the vertex data this producer can provide
-
resetInterp
Used to reset the interpolation values inside the provided helper.- 参数:
helper- The helper.s- The axis. side >> 1;- 返回:
- The same helper.
-
clamp
public void clamp(net.minecraft.world.phys.AABB bb) Clamps the Quad inside the box.- 参数:
bb- The box.
-
clamp
Clamps the Quad inside the box.- 参数:
cuboid- The box.
-
calculateOrientation
public void calculateOrientation(boolean setNormal) Re-calculates the Orientation of this quad, optionally the normal vector.- 参数:
setNormal- If the normal vector should be updated.
-
copy
Used to create a new quad complete copy of this one.- 返回:
- The new quad.
-
copyFrom
Copies the data inside the given quad to this one. This ignores VertexFormat, please make sure your quads are in the same format.- 参数:
quad- The Quad to copy from.- 返回:
- This quad.
-
reset
Reset the quad to the new format.- 参数:
format- The new format.
-
rewind
public void rewind()Rewind this Quad without completely resetting it. -
bake
public net.minecraft.client.renderer.block.model.BakedQuad bake()Bakes this Quad to a BakedQuad.- 返回:
- The BakedQuad.
-