Package net.minecraftforge.common.util
Class Constants
- java.lang.Object
-
- net.minecraftforge.common.util.Constants
-
public class Constants extends java.lang.Object
A class containing constants for magic numbers used in the minecraft codebase. Everything here should be checked each update, and have a comment relating to where to check it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Constants.BlockFlags
The flags used when callingnet.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 ORstatic class
Constants.NBT
NBT 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)
static class
Constants.WorldEvents
The world event IDS, used when callingIWorld#playEvent(int, BlockPos, int)
.
-
Constructor Summary
Constructors Constructor Description Constants()
-