Package net.minecraftforge.common.util
package net.minecraftforge.common.util
-
ClassDescriptionRepresents a captured snapshot of a block which will not change automatically.BrainBuilder<E extends LivingEntity>This object is used to encapsulate state found inside a
Brain
instance, to make it easily accessible for modders to manipulate duringLivingMakeBrainEvent
.
Provided are a variety of getter/setter methods to access and manipulate the encapsulated state.
Methods marked with "INTENDED FOR INTERNAL USE" are only meant to be used inside:ForgeHooks.onLivingMakeBrain(LivingEntity, Brain, Dynamic)
Brain.createBuilder()
Brain.copyFromBuilder(BrainBuilder)
Of course, nothing egregious will happen should a modder choose to use them for their own purposes.Thread-safe implementation.Non-thread-safe implementation.A list that concatenates multiple other lists for efficient iteration.A subclass ofSoundType
that usesSupplier<SoundEvent>
s.Utility class for creating a nice human readable dump of binary data.INBTSerializable<T extends Tag>Deprecated.// Mojang has switched most things to Codecs and registry context, probably worth deleting this.Interface for handling the placement of entities during dimension change.Lazy<T>Proxy object for a value that is calculated on first accessThread-safe implementation.Lazy.Fast<T>Non-thread-safe implementation.LazyOptional<T>This object encapsulates a lazy value, with typical transformation operations (map/ifPresent) available, much likeOptional
.A mutable linked map with a hashing strategy and a merge function.MutableHashedLinkedMap.MergeFunction<Key,Value> Equivalent toConsumer
, except with nonnull contract.NonNullFunction<T,R> Equivalent toFunction
, except with nonnull contract.NonNullLazy<T>Proxy object for a value that is calculated on first access.Equivalent toPredicate
, except with nonnull contract.Equivalent toSupplier
, except with nonnull contract.An Implementation of Properties that is sorted when iterating.TablePrinter<T>Utility to format data into a textual (markdown-compliant) table.TriPredicate<T,U, V> A predicate that takes three arguments and returns a boolean.