Class WorldGradient

java.lang.Object
com.render.api.world.WorldGradient

public final class WorldGradient extends Object
Immutable vertex-sampled local-space linear or radial gradient. Radial paint varies only when mesh vertices have different distances from its center; a centered sphere surface has a constant radius, while a disc contains concentric radial bands.
  • Method Details

    • linear

      public static WorldGradient linear(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, WorldGradient.Stop... stops)
    • radial

      public static WorldGradient radial(net.minecraft.world.phys.Vec3 center, float radius, WorldGradient.Stop... stops)
    • type

      public WorldGradient.Type type()
    • start

      public net.minecraft.world.phys.Vec3 start()
    • end

      public net.minecraft.world.phys.Vec3 end()
    • radius

      public float radius()
    • stops

      public List<WorldGradient.Stop> stops()
    • sample

      public RenderColor sample(net.minecraft.world.phys.Vec3 localPosition)