Class BakedQuad
java.lang.Object
net.minecraft.client.renderer.block.model.BakedQuad
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Directionprivate final booleanprivate final booleanprotected final TextureAtlasSpriteprotected final intprotected final int[] -
Constructor Summary
ConstructorsConstructorDescriptionBakedQuad(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 TypeMethodDescriptionintint[]booleanReturns 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).booleanisShade()booleanisTinted()
-
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)
-