Package codechicken.lib.render.lighting
Class SimpleBrightnessModel
java.lang.Object
codechicken.lib.render.lighting.SimpleBrightnessModel
- All Implemented Interfaces:
IVertexOperation
Simple brightness model that only works for axis planar sides
-
Nested Class Summary
Nested classes/interfaces inherited from interface codechicken.lib.render.pipeline.IVertexOperation
IVertexOperation.VertexOperationRegistry -
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.level.BlockAndTintGetterstatic SimpleBrightnessModelstatic final intnet.minecraft.core.BlockPos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanload(CCRenderState ccrs) Load any required references and add dependencies to the pipeline based on the current model (may be null) Return false if this operation is redundant in the pipeline with the given modelvoidlocate(net.minecraft.world.level.BlockAndTintGetter a, net.minecraft.core.BlockPos bPos) voidoperate(CCRenderState ccrs) Perform the operation on the current render stateintGet the unique id representing this type of operation.intsample(int side)
-
Field Details
-
operationIndex
public static final int operationIndex -
instance
-
access
public net.minecraft.world.level.BlockAndTintGetter access -
pos
public net.minecraft.core.BlockPos pos
-
-
Constructor Details
-
SimpleBrightnessModel
public SimpleBrightnessModel()
-
-
Method Details
-
locate
public void locate(net.minecraft.world.level.BlockAndTintGetter a, net.minecraft.core.BlockPos bPos) -
sample
public int sample(int side) -
load
Description copied from interface:IVertexOperationLoad any required references and add dependencies to the pipeline based on the current model (may be null) Return false if this operation is redundant in the pipeline with the given model- Specified by:
loadin interfaceIVertexOperation
-
operate
Description copied from interface:IVertexOperationPerform the operation on the current render state- Specified by:
operatein interfaceIVertexOperation
-
operationID
public int operationID()Description copied from interface:IVertexOperationGet the unique id representing this type of operation. Duplicate operation IDs within the pipeline may have unexpected results. ID should be obtained from CCRenderState.registerOperation() and stored in a static variable- Specified by:
operationIDin interfaceIVertexOperation
-