Interface IntOrUUID

All Known Implementing Classes:
IntOrUUID.IntImpl, IntOrUUID.UUIDImpl

public sealed interface IntOrUUID permits IntOrUUID.IntImpl, IntOrUUID.UUIDImpl
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<IntOrUUID> CODEC
    • STREAM_CODEC

      static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, IntOrUUID> STREAM_CODEC
    • DATA_TYPE

      static final DataType<IntOrUUID> DATA_TYPE
  • Method Details

    • of

      static IntOrUUID of(int value)
    • of

      static IntOrUUID of(UUID value)
    • either

      com.mojang.datafixers.util.Either<Integer,UUID> either()
    • optionalInteger

      Optional<Integer> optionalInteger()
    • optionalInt

      OptionalInt optionalInt()
    • optionalUUID

      Optional<UUID> optionalUUID()
    • testEntity

      boolean testEntity(net.minecraft.world.entity.Entity entity)
    • getEntity

      @Nullable @Nullable net.minecraft.world.entity.Entity getEntity(net.minecraft.world.level.Level level)