Class NestedEmbeddedEnvironment

All Implemented Interfaces:
VisualEmbedding, VisualizationContext, Environment

public class NestedEmbeddedEnvironment extends AbstractEmbeddedEnvironment
  • Constructor Details

  • Method Details

    • collectLight

      public void collectLight(net.minecraft.world.level.BlockAndTintGetter level, int minX, int minY, int minZ, int sizeX, int sizeY, int sizeZ)
      Description copied from interface: VisualEmbedding
      Collect light information from the given level for the given box.

      Call this method on as many or as few boxes as you need to encompass all child visuals of this embedding.

      After this method is called, instances rendered from this embedding within the given box will be lit as if they were in the given level.

      Parameters:
      level - The level to collect light information from.
      minX - The minimum x coordinate of the box.
      minY - The minimum y coordinate of the box.
      minZ - The minimum z coordinate of the box.
      sizeX - The size of the box in the x direction.
      sizeY - The size of the box in the y direction.
      sizeZ - The size of the box in the z direction.
    • invalidateLight

      public void invalidateLight()
      Description copied from interface: VisualEmbedding
      Reset any collected lighting information.
    • setupLight

      public void setupLight(GlProgram program)
      Specified by:
      setupLight in class AbstractEmbeddedEnvironment
    • composeMatrices

      public void composeMatrices(org.joml.Matrix4f pose, org.joml.Matrix3f normal)
      Specified by:
      composeMatrices in class AbstractEmbeddedEnvironment
    • actuallyDelete

      public void actuallyDelete()
      Description copied from class: AbstractEmbeddedEnvironment
      Called in EnvironmentStorage#flush
      Specified by:
      actuallyDelete in class AbstractEmbeddedEnvironment