Class MinMaxLongs

java.lang.Object
net.minecraft.advancements.critereon.MinMaxBounds<Long>
at.petrak.hexcasting.api.advancements.MinMaxLongs

public class MinMaxLongs extends net.minecraft.advancements.critereon.MinMaxBounds<Long>
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.advancements.critereon.MinMaxBounds

    net.minecraft.advancements.critereon.MinMaxBounds.BoundsFactory<T extends Number,R extends net.minecraft.advancements.critereon.MinMaxBounds<T>>, net.minecraft.advancements.critereon.MinMaxBounds.BoundsFromReaderFactory<T extends Number,R extends net.minecraft.advancements.critereon.MinMaxBounds<T>>, net.minecraft.advancements.critereon.MinMaxBounds.Doubles, net.minecraft.advancements.critereon.MinMaxBounds.Ints
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final MinMaxLongs
     

    Fields inherited from class net.minecraft.advancements.critereon.MinMaxBounds

    ERROR_EMPTY, ERROR_SWAPPED, max, min
  • Method Summary

    Modifier and Type
    Method
    Description
    atLeast(long min)
     
    atMost(long max)
     
    between(long min, long max)
     
    exactly(long l)
     
    fromJson(com.google.gson.JsonElement json)
     
    fromReader(com.mojang.brigadier.StringReader reader)
     
    fromReader(com.mojang.brigadier.StringReader reader, Function<Long,Long> map)
     
    boolean
    matches(long l)
     
    boolean
    matchesSqr(long l)
     

    Methods inherited from class net.minecraft.advancements.critereon.MinMaxBounds

    fromJson, fromReader, getMax, getMin, isAny, serializeToJson

    Methods inherited from class java.lang.Object

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

  • Method Details

    • exactly

      public static MinMaxLongs exactly(long l)
    • between

      public static MinMaxLongs between(long min, long max)
    • atLeast

      public static MinMaxLongs atLeast(long min)
    • atMost

      public static MinMaxLongs atMost(long max)
    • matches

      public boolean matches(long l)
    • matchesSqr

      public boolean matchesSqr(long l)
    • fromJson

      public static MinMaxLongs fromJson(@Nullable com.google.gson.JsonElement json)
    • fromReader

      public static MinMaxLongs fromReader(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • fromReader

      public static MinMaxLongs fromReader(com.mojang.brigadier.StringReader reader, Function<Long,Long> map) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException