Class Sampler2DProperty

java.lang.Object
foundry.veil.api.client.property.Property<net.minecraft.client.renderer.texture.AbstractTexture>
foundry.veil.api.client.property.properties.Sampler2DProperty

public class Sampler2DProperty extends Property<net.minecraft.client.renderer.texture.AbstractTexture>
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<Sampler2DProperty> CODEC
  • Constructor Details

    • Sampler2DProperty

      public Sampler2DProperty(net.minecraft.resources.ResourceLocation value)
  • Method Details

    • applyValue

      public void applyValue(String name, net.minecraft.client.renderer.ShaderInstance shader)
      Specified by:
      applyValue in class Property<net.minecraft.client.renderer.texture.AbstractTexture>
    • modify

      public void modify(net.minecraft.client.renderer.texture.AbstractTexture value, PropertyModifier.PropertyModifierMode mode, Optional<List<gg.moonflower.molangcompiler.api.MolangExpression>> optionalMolang)
      Specified by:
      modify in class Property<net.minecraft.client.renderer.texture.AbstractTexture>
    • cloneValue

      protected net.minecraft.client.renderer.texture.AbstractTexture cloneValue(net.minecraft.client.renderer.texture.AbstractTexture value)
      Specified by:
      cloneValue in class Property<net.minecraft.client.renderer.texture.AbstractTexture>