程序包 net.neoforged.neoforge.common
@ParametersAreNonnullByDefault
package net.neoforged.neoforge.common
-
类说明A default, exposed implementation of ITrade.A boolean attribute only has two states, on or off, represented by a value of 0 (false) or 1 (true).Class for various common (i.e. client and server-side) hooks.This class defines a replacement for the default minecart collision code.Contains helpers for performing file I/O in a resilient manner.Declares an interface which is functionally equivalent to
Consumer
, except supports the ability to throw IOExceptions that may occur.This interfaces allows shears (modded 无效输入:'&' vanilla) and entities (modded 无效输入:'&' vanilla) to cooperate without needing advance knowledge of each other.Key and value decoded independently, unknown set of keysModConfigSpec.EnumValue<T extends Enum<T>>ModConfigSpec.Range<V extends Comparable<? super V>>Used to prevent cached config values from being updated unless the game or the world is restarted.A Percentage Attribute is one which always displays modifiers as percentages, including forAttributeModifier.Operation.ADD_VALUE
.Defines an action which produces a sound.A utility holding common sound actions.Intended for mods to help mark if a modded item allows for placing modded plants of any kind or size.Note, fluid tags should not be plural to match the vanilla standard.An enum value that can be be translated.Caches player's last known usernamesUsed for saving theGson
representation of the cache to disk