Interface MinMaxBounds<T extends Number>

All Known Implementing Classes:
MinMaxBounds.Doubles, MinMaxBounds.Ints

public interface MinMaxBounds<T extends Number>
  • Field Details

    • ERROR_EMPTY

      static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EMPTY
    • ERROR_SWAPPED

      static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SWAPPED
  • Method Details

    • min

      Optional<T> min()
    • max

      Optional<T> max()
    • isAny

      default boolean isAny()
    • unwrapPoint

      default Optional<T> unwrapPoint()
    • createCodec

      static <T extends Number, R extends MinMaxBounds<T>> com.mojang.serialization.Codec<R> createCodec(com.mojang.serialization.Codec<T> p_297837_, MinMaxBounds.BoundsFactory<T,R> p_298619_)
    • fromReader

      static <T extends Number, R extends MinMaxBounds<T>> R fromReader(com.mojang.brigadier.StringReader p_55314_, MinMaxBounds.BoundsFromReaderFactory<T,R> p_55315_, Function<String,T> p_55316_, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> p_55317_, Function<T,T> p_55318_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readNumber

      private static <T extends Number> Optional<T> readNumber(com.mojang.brigadier.StringReader p_55320_, Function<String,T> p_55321_, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> p_55322_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • isAllowedInputChat

      private static boolean isAllowedInputChat(com.mojang.brigadier.StringReader p_55312_)