Package net.minecraftforge.common.util
package net.minecraftforge.common.util
-
ClassDescriptionRepresents a captured snapshot of a block which will not change automatically.A class containing constants for magic numbers used in the minecraft codebase.The flags used when calling
net.minecraft.world.IWorldWriter#setBlockState(BlockPos, BlockState, int)
Can be found fromWorld#setBlockState(BlockPos, BlockState, int)
,World.markAndNotifyBlock(net.minecraft.util.math.BlockPos, net.minecraft.world.chunk.Chunk, net.minecraft.block.BlockState, net.minecraft.block.BlockState, int, int)
, andWorldRenderer#notifyBlockUpdate
Flags can be combined with bitwise ORNBT Tag type IDS, used when storing the nbt to disc, Should align withnet.minecraft.nbt.INBT#create
andnet.minecraft.nbt.INBT#getTypeName
Main use is checking tag type inCompoundNBT.contains(String, int)
The world event IDS, used when callingIWorld#playEvent(int, BlockPos, int)
.A subclass ofSoundType
that usesSupplier<SoundEvent>
s.Utility class for creating a nice human readable dump of binary data.INBTSerializable<T extends INBT>An interface designed to unify various things in the Minecraft code base that can be serialized to and from a NBT tag.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
.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.