MixinSimpleRegistry

public abstract class MixinSimpleRegistry<T> extends Registry<T>

Functions

boxed
Link copied to clipboard
Decoder.Boxed<Aboxed()
checkRange
Link copied to clipboard
static Function<N, DataResult<N>> checkRange<N extends Number, Comparable<N>>(N minInclusive, N maxInclusive)
comap
Link copied to clipboard
Encoder<Bcomap<B>(Function<? extends Object, ? extends A> function)
comapFlatMap
Link copied to clipboard
Codec<ScomapFlatMap<S>(Function<? extends Object, ? extends DataResult<? extends S>> to, Function<? extends Object, ? extends A> from)
compoundList
Link copied to clipboard
static Codec<List<Pair<K, V>>> compoundList<K, V>(Codec<K> keyCodec, Codec<V> elementCodec)
contains
Link copied to clipboard
abstract boolean contains(RegistryKey<T> key)
containsId
Link copied to clipboard
abstract boolean containsId(Identifier id)
decode
Link copied to clipboard
abstract DataResult<Pair<A, T>> decode<T>(DynamicOps<T> p, T p1)
DataResult<Pair<T, U>> decode<U>(DynamicOps<U> dynamicOps, U object)
deprecated
Link copied to clipboard
Codec<Adeprecated(int since)
dispatch
Link copied to clipboard
Codec<Edispatch<E>(Function<? extends Object, ? extends A> type, Function<? extends Object, ? extends Codec<? extends E>> codec)
dispatchMap
Link copied to clipboard
MapCodec<EdispatchMap<E>(Function<? extends Object, ? extends A> type, Function<? extends Object, ? extends Codec<? extends E>> codec)
dispatchStable
Link copied to clipboard
Codec<EdispatchStable<E>(Function<? extends Object, ? extends A> type, Function<? extends Object, ? extends Codec<? extends E>> codec)
doubleRange
Link copied to clipboard
static Codec<DoubledoubleRange(double minInclusive, double maxInclusive)
either
Link copied to clipboard
static Codec<Either<F, S>> either<F, S>(Codec<F> first, Codec<S> second)
empty
Link copied to clipboard
static MapEncoder<Aempty<A>()
encode
Link copied to clipboard
abstract DataResult<Tencode<T>(A p, DynamicOps<T> p1, T p2)
DataResult<Uencode<U>(T object, DynamicOps<U> dynamicOps, U object2)
encodeStart
Link copied to clipboard
DataResult<TencodeStart<T>(DynamicOps<T> ops, A input)
error
Link copied to clipboard
static Encoder<Aerror<A>(String error)
static Decoder<Aerror<A>(String error)
fieldOf
Link copied to clipboard
MapCodec<AfieldOf(String name)
MapEncoder<AfieldOf(String name)
MapDecoder<AfieldOf(String name)
flatComap
Link copied to clipboard
Encoder<BflatComap<B>(Function<? extends Object, ? extends DataResult<? extends A>> function)
flatComapMap
Link copied to clipboard
Codec<SflatComapMap<S>(Function<? extends Object, ? extends S> to, Function<? extends Object, ? extends DataResult<? extends A>> from)
flatMap
Link copied to clipboard
Decoder<BflatMap<B>(Function<? extends Object, ? extends DataResult<? extends B>> function)
flatXmap
Link copied to clipboard
Codec<SflatXmap<S>(Function<? extends Object, ? extends DataResult<? extends S>> to, Function<? extends Object, ? extends DataResult<? extends A>> from)
floatRange
Link copied to clipboard
static Codec<FloatfloatRange(float minInclusive, float maxInclusive)
forEach
Link copied to clipboard
void forEach(Consumer<? extends Object> action)
forStrings
Link copied to clipboard
static Keyable forStrings(Supplier<Stream<String>> keys)
get
Link copied to clipboard
abstract T get(RegistryKey<T> key)
getEntries
Link copied to clipboard
abstract Set<Map.Entry<RegistryKey<T>, T>> getEntries()
getId
Link copied to clipboard
abstract Identifier getId(T entry)
getIds
Link copied to clipboard
abstract Set<IdentifiergetIds()
getKey
Link copied to clipboard
RegistryKey<? extends Registry<T>> getKey()
abstract Optional<RegistryKey<T>> getKey(T entry)
getLifecycle
Link copied to clipboard
abstract Lifecycle getLifecycle()
getOrEmpty
Link copied to clipboard
Optional<TgetOrEmpty(Identifier id)
getOrThrow
Link copied to clipboard
T getOrThrow(RegistryKey<T> key)
getRandom
Link copied to clipboard
abstract T getRandom(Random random)
getRawId
Link copied to clipboard
abstract int getRawId(T entry)
intRange
Link copied to clipboard
static Codec<IntegerintRange(int minInclusive, int maxInclusive)
iterator
Link copied to clipboard
abstract Iterator<Titerator()
keys
Link copied to clipboard
abstract Stream<Tkeys<T>(DynamicOps<T> p)
Stream<Ukeys<U>(DynamicOps<U> dynamicOps)
list
Link copied to clipboard
static Codec<List<E>> list<E>(Codec<E> elementCodec)
listOf
Link copied to clipboard
Codec<List<A>> listOf()
map
Link copied to clipboard
Decoder<Bmap<B>(Function<? extends Object, ? extends B> function)
mapEither
Link copied to clipboard
static MapCodec<Either<F, S>> mapEither<F, S>(MapCodec<F> first, MapCodec<S> second)
mapPair
Link copied to clipboard
static MapCodec<Pair<F, S>> mapPair<F, S>(MapCodec<F> first, MapCodec<S> second)
mapResult
Link copied to clipboard
Codec<AmapResult(Codec.ResultFunction<A> function)
of
Link copied to clipboard
static Codec<Aof<A>(Encoder<A> encoder, Decoder<A> decoder)
static MapCodec<Aof<A>(MapEncoder<A> encoder, MapDecoder<A> decoder)
ofBoxed
Link copied to clipboard
static Decoder<AofBoxed<A>(Decoder.Boxed<? extends A> boxed)
ofSimple
Link copied to clipboard
static Decoder<AofSimple<A>(Decoder.Simple<? extends A> simple)
ofTerminal
Link copied to clipboard
static Decoder<AofTerminal<A>(Decoder.Terminal<? extends A> terminal)
optionalField
Link copied to clipboard
static MapCodec<Optional<F>> optionalField<F>(String name, Codec<F> elementCodec)
optionalFieldOf
Link copied to clipboard
MapCodec<Optional<A>> optionalFieldOf(String name)
MapCodec<AoptionalFieldOf(String name, A defaultValue)
orElse
Link copied to clipboard
Codec<AorElse(Consumer<String> onError, A value)
orElseGet
Link copied to clipboard
Codec<AorElseGet(Consumer<String> onError, Supplier<? extends A> value)
pair
Link copied to clipboard
static Codec<Pair<F, S>> pair<F, S>(Codec<F> first, Codec<S> second)
parse
Link copied to clipboard
DataResult<Aparse<T>(DynamicOps<T> ops, T input)
partialDispatch
Link copied to clipboard
Codec<EpartialDispatch<E>(String typeKey, Function<? extends Object, ? extends DataResult<? extends A>> type, Function<? extends Object, ? extends DataResult<? extends Codec<? extends E>>> codec)
promotePartial
Link copied to clipboard
Codec<ApromotePartial(Consumer<String> onError)
Decoder<ApromotePartial(Consumer<String> onError)
register
Link copied to clipboard
static T register<T>(Registry<? extends Object> registry, String id, T entry)
simple
Link copied to clipboard
Decoder.Simple<Asimple()
simpleMap
Link copied to clipboard
static SimpleMapCodec<K, VsimpleMap<K, V>(Codec<K> keyCodec, Codec<V> elementCodec, Keyable keys)
spliterator
Link copied to clipboard
Spliterator<Tspliterator()
stable
Link copied to clipboard
Codec<Astable()
stream
Link copied to clipboard
Stream<Tstream()
terminal
Link copied to clipboard
Decoder.Terminal<Aterminal()
toString
Link copied to clipboard
String toString()
unboundedMap
Link copied to clipboard
static UnboundedMapCodec<K, VunboundedMap<K, V>(Codec<K> keyCodec, Codec<V> elementCodec)
unit
Link copied to clipboard
static Codec<Aunit<A>(A defaultValue)
static MapDecoder<Aunit<A>(A instance)
validate
Link copied to clipboard
static void validate<T extends MutableRegistry<? extends Object>>(MutableRegistry<T> registry)
withLifecycle
Link copied to clipboard
Codec<AwithLifecycle(Lifecycle lifecycle)
Encoder<AwithLifecycle(Lifecycle lifecycle)
Decoder<AwithLifecycle(Lifecycle lifecycle)
xmap
Link copied to clipboard
Codec<Sxmap<S>(Function<? extends Object, ? extends S> to, Function<? extends Object, ? extends A> from)

Sources

jvm source
Link copied to clipboard