Package codechicken.lib.render.lighting
Class PlanarLightMatrix
java.lang.Object
codechicken.lib.render.lighting.PlanarLightModel
codechicken.lib.render.lighting.PlanarLightMatrix
- All Implemented Interfaces:
IVertexOperation
-
Nested Class Summary
Nested classes/interfaces inherited from interface codechicken.lib.render.pipeline.IVertexOperation
IVertexOperation.VertexOperationRegistry -
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.level.BlockAndTintGetterint[]static PlanarLightMatrixstatic final intnet.minecraft.core.BlockPosFields inherited from class codechicken.lib.render.lighting.PlanarLightModel
colours, standardLightModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbrightness(int side) booleanload(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 modellocate(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.
-
Field Details
-
operationIndex
public static final int operationIndex -
instance
-
access
public net.minecraft.world.level.BlockAndTintGetter access -
pos
public net.minecraft.core.BlockPos pos -
brightness
public int[] brightness
-
-
Constructor Details
-
PlanarLightMatrix
public PlanarLightMatrix()
-
-
Method Details
-
locate
public PlanarLightMatrix locate(net.minecraft.world.level.BlockAndTintGetter a, net.minecraft.core.BlockPos bPos) -
brightness
public int brightness(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- Overrides:
loadin classPlanarLightModel
-
operate
Description copied from interface:IVertexOperationPerform the operation on the current render state- Specified by:
operatein interfaceIVertexOperation- Overrides:
operatein classPlanarLightModel
-
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- Overrides:
operationIDin classPlanarLightModel
-