Class RenderTypeDuplicator

java.lang.Object
dev.cammiescorner.velvet.impl.RenderTypeDuplicator

public final class RenderTypeDuplicator extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.client.renderer.RenderType
    copy(net.minecraft.client.renderer.RenderType existing, String newName, @Nullable com.mojang.blaze3d.vertex.VertexFormat vertexFormat, Consumer<net.minecraft.client.renderer.RenderType.CompositeState.CompositeStateBuilder> op)
     
    static net.minecraft.client.renderer.RenderType
    copy(net.minecraft.client.renderer.RenderType existing, String newName, Consumer<net.minecraft.client.renderer.RenderType.CompositeState.CompositeStateBuilder> op)
     
    static net.minecraft.client.renderer.RenderType.CompositeState
    copyPhaseParameters(net.minecraft.client.renderer.RenderType existing, Consumer<net.minecraft.client.renderer.RenderType.CompositeState.CompositeStateBuilder> op)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RenderTypeDuplicator

      public RenderTypeDuplicator()
  • Method Details

    • copy

      public static net.minecraft.client.renderer.RenderType copy(net.minecraft.client.renderer.RenderType existing, String newName, Consumer<net.minecraft.client.renderer.RenderType.CompositeState.CompositeStateBuilder> op)
    • copy

      public static net.minecraft.client.renderer.RenderType copy(net.minecraft.client.renderer.RenderType existing, String newName, @Nullable @Nullable com.mojang.blaze3d.vertex.VertexFormat vertexFormat, Consumer<net.minecraft.client.renderer.RenderType.CompositeState.CompositeStateBuilder> op)
      Parameters:
      existing - the RenderType to copy
      newName - a unique name for the new RenderType
      vertexFormat - the new vertex format, or null if existing's format should be used
      op - the transformation to apply to existing's parameters
      Returns:
      a new RenderType based on existing
    • copyPhaseParameters

      public static net.minecraft.client.renderer.RenderType.CompositeState copyPhaseParameters(net.minecraft.client.renderer.RenderType existing, Consumer<net.minecraft.client.renderer.RenderType.CompositeState.CompositeStateBuilder> op)