程序包 net.neoforged.neoforge.common.util
@ParametersAreNonnullByDefault
package net.neoforged.neoforge.common.util
-
类说明Extended
Item.TooltipContext
used when generating attribute tooltips.Utility code to supportIAttributeExtension
.Stores a single base modifier (determined byIAttributeExtension.getBaseId()
) and any other children non-base modifiers for the same attribute.State-tracking object used to merge attribute modifier tooltips inAttributeUtil.applyTextFor(net.minecraft.world.item.ItemStack, java.util.function.Consumer<net.minecraft.network.chat.Component>, com.google.common.collect.Multimap<net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute>, net.minecraft.world.entity.ai.attributes.AttributeModifier>, net.neoforged.neoforge.common.util.AttributeTooltipContext)
.Represents a captured snapshot of a block, including the level, position, state, BE data, and setBlock flags.A list that concatenates multiple other lists for efficient iteration.A subclass ofSoundType
that usesSupplier<SoundEvent>
s.A basic fake server player implementation that can be used to simulate player actions.Utility class for working withFriendlyByteBuf
s.Utility class for creating a nice human readable dump of binary data.Special linked hash set that allow changing the order of its entries and is strict to throw if attempting to add an entry that already exists.Lazy<T>Proxy object for a value that is calculated on first access, and can be refreshed as well.A mutable linked map with a hashing strategy and a merge function.MutableHashedLinkedMap.MergeFunction<Key,Value> Codec
-related helper functions that are not inExtraCodecs
, but useful to NeoForge and other mods.We use a "self-test" to launch a client and dedicated server from within our CI and exit.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.A generic interface for objects that can be serialized to aValueOutput
and deserialized from aValueInput