Class ClampedInt

java.lang.Object
net.minecraft.util.valueproviders.IntProvider
net.minecraft.util.valueproviders.ClampedInt

public class ClampedInt extends IntProvider
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<ClampedInt> CODEC
    • source

      private final IntProvider source
    • minInclusive

      private final int minInclusive
    • maxInclusive

      private final int maxInclusive
  • Constructor Details

    • ClampedInt

      public ClampedInt(IntProvider p_146389_, int p_146390_, int p_146391_)
  • Method Details