Class Resolvers

java.lang.Object
moe.caramel.daydream.brigadier.Resolvers

@NullMarked public final class Resolvers extends Object
인자 타입 리졸버
See Also:
  • Method Details

    • entity

      public static Entity entity(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      명령어 컨텍스트와 주어진 인수 이름으로부터 단일 엔티티를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      엔티티
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • optionalEntities

      public static List<Entity> optionalEntities(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      명령어 컨텍스트와 주어진 인수 이름으로부터 엔티티 목록을 해석합니다. 여러 엔티티를 반환할 수 있으며, 일치하는 엔티티가 없는 경우 빈 목록을 반환할 수 있습니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      엔티티 목록
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • entities

      public static List<Entity> entities(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      명령어 컨텍스트와 주어진 인수 이름으로부터 엔티티 목록을 해석합니다. 여러 엔티티를 반환할 수 있으며, 일치하는 엔티티가 없는 경우 오류 메시지를 전달합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      엔티티 목록
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • player

      public static Player player(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      명령어 컨텍스트와 주어진 인수 이름으로부터 단일 플레이어를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      플레이어
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • optionalPlayers

      public static List<Player> optionalPlayers(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      명령어 컨텍스트와 주어진 인수 이름으로부터 플레이어 목록을 해석합니다. 여러 플레이어를 반환할 수 있으며, 일치하는 플레이어가 없는 경우 빈 목록을 반환할 수 있습니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      플레이어 목록
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • players

      public static List<Player> players(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      명령어 컨텍스트와 주어진 인수 이름으로부터 플레이어 목록을 해석합니다. 여러 플레이어를 반환할 수 있으며, 일치하는 플레이어가 없는 경우 오류 메시지를 전달합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      플레이어 목록
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • playerProfiles

      public static Collection<PlayerProfile> playerProfiles(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      명령어 컨텍스트와 주어진 인수 이름으로부터 플레이어 프로필을 해석합니다. 여러 플레이어 프로필을 반환할 수 있습니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      플레이어 프로필 목록
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • blockPosition

      public static BlockPosition blockPosition(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      명령어 컨텍스트와 주어진 인수 이름으로부터 정수형 위치를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      정수형 위치
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • finePosition

      public static FinePosition finePosition(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      명령어 컨텍스트와 주어진 인수 이름으로부터 실수형 위치를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      실수형 위치
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • rotation

      public static Rotation rotation(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      명령어 컨텍스트와 주어진 인수 이름으로부터 회전을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      회전
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • blockState

      public static BlockState blockState(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 블록 상태를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      블록 상태
    • itemStack

      public static ItemStack itemStack(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 아이템 스택을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      아이템 스택
    • itemPredicate

      public static ItemStackPredicate itemPredicate(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 아이템 예측을 가져옵니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      아이템 예측
    • namedColor

      public static NamedTextColor namedColor(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 지정된 색을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      지정된 색
    • hexColor

      public static TextColor hexColor(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 십육진 색을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      십육진 색
    • component

      public static Component component(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 컴포넌트를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      컴포넌트
    • style

      public static Style style(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 스타일을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      스타일
    • signedMessage

      public static SignedMessageResolver signedMessage(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 서명된 메시지를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      서명된 메시지
    • scoreboardDisplaySlot

      public static DisplaySlot scoreboardDisplaySlot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 스코어보드 슬롯을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      스코어보드 슬롯
    • namespacedKey

      public static NamespacedKey namespacedKey(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 키를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
    • key

      public static Key key(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 키를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
    • integerRange

      public static Range<Integer> integerRange(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 정수 범위를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      정수 범위
    • doubleRange

      public static Range<Double> doubleRange(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 실수 범위를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      실수 범위
    • world

      public static World world(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 월드를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      월드
    • gameMode

      public static GameMode gameMode(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 게임모드를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      게임모드
    • heightMap

      public static HeightMap heightMap(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 하이트 맵을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      하이트 맵
    • uuid

      public static UUID uuid(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 UUID를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      UUID
    • objectiveCriteria

      public static Criteria objectiveCriteria(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 목적 기준을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      목적 기준
    • entityAnchor

      public static LookAnchor entityAnchor(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 주목 지점을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      주목 지점
    • time

      public static int time(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 시간을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      시간 (틱)
    • templateMirror

      public static Mirror templateMirror(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 구조물 반전 타입을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      구조물 반전 타입
    • templateRotation

      public static StructureRotation templateRotation(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 구조물 회전 타입을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      구조물 회전 타입
    • resource

      public static <T> T resource(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 레지스트리 리소스를 해석합니다.
      Type Parameters:
      T - 값 타입
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      레지스트리 리소스
    • resourceKey

      public static <T> TypedKey<T> resourceKey(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 레지스트리의 타입 키를 해석합니다.
      Type Parameters:
      T - 값 타입
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      레지스트리 타입 키
    • gameProfiles

      public static Collection<com.mojang.authlib.GameProfile> gameProfiles(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 플레이어 프로필을 해석합니다. 여러 플레이어 프로필을 반환할 수 있습니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      플레이어 프로필 목록
    • compoundTag

      public static BinaryTagHolder compoundTag(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 컴파운드 태그를 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      컴파운드 태그
    • slot

      public static int slot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 슬롯을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      슬롯 번호
    • slots

      public static it.unimi.dsi.fastutil.ints.IntList slots(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
      명령어 컨텍스트와 주어진 인수 이름으로부터 슬롯 목록을 해석합니다.
      Parameters:
      context - 명령어 컨텍스트
      name - 인수의 이름
      Returns:
      슬롯 번호 목록