Class BakedQuad
java.lang.Object
net.minecraft.client.renderer.block.model.BakedQuad
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Direction
private final boolean
private final boolean
protected final TextureAtlasSprite
protected final int
protected final int[]
-
Constructor Summary
ConstructorDescriptionBakedQuad
(int[] p_111298_, int p_111299_, Direction p_111300_, TextureAtlasSprite p_111301_, boolean p_111302_) BakedQuad
(int[] p_111298_, int p_111299_, Direction p_111300_, TextureAtlasSprite p_111301_, boolean p_111302_, boolean hasAmbientOcclusion) -
Method Summary
Modifier and TypeMethodDescriptionint
int[]
boolean
Returns false to force-disable AO for this quad or true to use the behavior dictated byIBakedModelExtension.useAmbientOcclusion(net.minecraft.world.level.block.state.BlockState, net.neoforged.neoforge.client.model.data.ModelData, net.minecraft.client.renderer.RenderType)
.boolean
isShade()
boolean
isTinted()
-
Field Details
-
vertices
protected final int[] vertices -
tintIndex
protected final int tintIndex -
direction
-
sprite
-
shade
private final boolean shade -
hasAmbientOcclusion
private final boolean hasAmbientOcclusion
-
-
Constructor Details
-
BakedQuad
public BakedQuad(int[] p_111298_, int p_111299_, Direction p_111300_, TextureAtlasSprite p_111301_, boolean p_111302_) -
BakedQuad
public BakedQuad(int[] p_111298_, int p_111299_, Direction p_111300_, TextureAtlasSprite p_111301_, boolean p_111302_, boolean hasAmbientOcclusion)
-
-
Method Details
-
getSprite
-
getVertices
public int[] getVertices() -
isTinted
public boolean isTinted() -
getTintIndex
public int getTintIndex() -
getDirection
-
isShade
public boolean isShade() -
hasAmbientOcclusion
public boolean hasAmbientOcclusion()Returns false to force-disable AO for this quad or true to use the behavior dictated byIBakedModelExtension.useAmbientOcclusion(net.minecraft.world.level.block.state.BlockState, net.neoforged.neoforge.client.model.data.ModelData, net.minecraft.client.renderer.RenderType)
.- Returns:
- false to force-disable AO for this quad or true to use the behavior dictated by
IBakedModelExtension.useAmbientOcclusion(net.minecraft.world.level.block.state.BlockState, net.neoforged.neoforge.client.model.data.ModelData, net.minecraft.client.renderer.RenderType)
-