Package net.neoforged.neoforge.common
Class NeoForgeMod
java.lang.Object
net.neoforged.neoforge.common.NeoForgeMod
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DeferredHolder<com.mojang.serialization.Codec<? extends BiomeModifier>,
com.mojang.serialization.Codec<BiomeModifiers.AddFeaturesBiomeModifier>> Stock biome modifier for adding features to biomes.static final DeferredHolder<com.mojang.serialization.Codec<? extends BiomeModifier>,
com.mojang.serialization.Codec<BiomeModifiers.AddSpawnsBiomeModifier>> Stock biome modifier for adding mob spawns to biomes.static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,
com.mojang.serialization.Codec<AndCondition>> static final Holder<HolderSetType>
Stock holder set type that represents an intersection of other holdersets.static final Holder<HolderSetType>
Stock holder set type that represents any/all values in a registry.private static final DeferredRegister<Attribute>
private static final DeferredRegister<com.mojang.serialization.Codec<? extends BiomeModifier>>
Reach Distance represents the distance at which a player may interact with the world.static final DeferredHolder<SoundEvent,
SoundEvent> static final DeferredHolder<SoundEvent,
SoundEvent> private static final DeferredRegister<ArgumentTypeInfo<?,
?>> static final DeferredHolder<IngredientType<?>,
IngredientType<CompoundIngredient>> private static final DeferredRegister<com.mojang.serialization.Codec<? extends ICondition>>
static final DeferredHolder<RecipeSerializer<?>,
ConditionalRecipe<?>> static final DeferredHolder<IngredientType<?>,
IngredientType<DifferenceIngredient>> private static boolean
Attack Range represents the distance at which a player may attack an entity.private static final DeferredHolder<ArgumentTypeInfo<?,
?>, EnumArgument.Info<?>> static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,
com.mojang.serialization.Codec<FalseCondition>> static final DeferredHolder<Fluid,
Fluid> private static final DeferredRegister<HolderSetType>
private static final DeferredRegister<IngredientType<?>>
static final DeferredHolder<IngredientType<?>,
IngredientType<IntersectionIngredient>> static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,
com.mojang.serialization.Codec<ItemExistsCondition>> private static final org.apache.logging.log4j.Logger
static final DeferredHolder<Fluid,
Fluid> static final DeferredHolder<FluidType,
FluidType> static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,
com.mojang.serialization.Codec<ModLoadedCondition>> private static final DeferredHolder<ArgumentTypeInfo<?,
?>, SingletonArgumentInfo<ModIdArgument>> private static final org.apache.logging.log4j.Marker
static final DeferredHolder<com.mojang.serialization.Codec<? extends BiomeModifier>,
com.mojang.serialization.Codec<NoneBiomeModifier>> Noop biome modifier.static final DeferredHolder<com.mojang.serialization.Codec<? extends StructureModifier>,
com.mojang.serialization.Codec<NoneStructureModifier>> Noop structure modifier.static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,
com.mojang.serialization.Codec<NotCondition>> static final Holder<HolderSetType>
Stock holder set type that represents all values in a registry except those in another given set.static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,
com.mojang.serialization.Codec<OrCondition>> static final Holder<HolderSetType>
Stock holder set type that represents a union of other holdersets.static final DeferredHolder<IngredientType<?>,
IngredientType<PartialNBTIngredient>> private static final DeferredRegister<RecipeSerializer<?>>
static final DeferredHolder<com.mojang.serialization.Codec<? extends BiomeModifier>,
com.mojang.serialization.Codec<BiomeModifiers.RemoveFeaturesBiomeModifier>> Stock biome modifier for removing features from biomes.static final DeferredHolder<com.mojang.serialization.Codec<? extends BiomeModifier>,
com.mojang.serialization.Codec<BiomeModifiers.RemoveSpawnsBiomeModifier>> Stock biome modifier for removing mob spawns from biomes.Step Height Addition modifies the amount of blocks an entity may walk up without jumping.static final DeferredHolder<IngredientType<?>,
IngredientType<StrictNBTIngredient>> private static final DeferredRegister<com.mojang.serialization.Codec<? extends StructureModifier>>
static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,
com.mojang.serialization.Codec<TagEmptyCondition>> static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,
com.mojang.serialization.Codec<TrueCondition>> static final PermissionNode<Boolean>
private static final DeferredRegister<FluidType>
static final DeferredHolder<IngredientType<?>,
IngredientType<Ingredient>> private static final DeferredRegister<IngredientType<?>>
static final String
-
Constructor Summary
ConstructorDescriptionNeoForgeMod
(net.neoforged.bus.api.IEventBus modEventBus, net.neoforged.api.distmarker.Dist dist) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Run this method during mod constructor to enable milk and add it to the Minecraft milk bucketvoid
gatherData
(GatherDataEvent event) void
loadComplete
(net.neoforged.fml.event.lifecycle.FMLLoadCompleteEvent event) void
preInit
(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent evt) void
registerFluids
(RegisterEvent event) void
registerLootData
(RegisterEvent event) void
void
void
-
Field Details
-
VERSION_CHECK_CAT
- See Also:
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
NEOFORGEMOD
private static final org.apache.logging.log4j.Marker NEOFORGEMOD -
ATTRIBUTES
-
COMMAND_ARGUMENT_TYPES
-
BIOME_MODIFIER_SERIALIZERS
private static final DeferredRegister<com.mojang.serialization.Codec<? extends BiomeModifier>> BIOME_MODIFIER_SERIALIZERS -
STRUCTURE_MODIFIER_SERIALIZERS
private static final DeferredRegister<com.mojang.serialization.Codec<? extends StructureModifier>> STRUCTURE_MODIFIER_SERIALIZERS -
HOLDER_SET_TYPES
-
ENUM_COMMAND_ARGUMENT_TYPE
private static final DeferredHolder<ArgumentTypeInfo<?,?>, ENUM_COMMAND_ARGUMENT_TYPEEnumArgument.Info<?>> -
MODID_COMMAND_ARGUMENT_TYPE
private static final DeferredHolder<ArgumentTypeInfo<?,?>, MODID_COMMAND_ARGUMENT_TYPESingletonArgumentInfo<ModIdArgument>> -
SWIM_SPEED
-
NAMETAG_DISTANCE
-
ENTITY_GRAVITY
-
BLOCK_REACH
Reach Distance represents the distance at which a player may interact with the world. The default is 4.5 blocks. Players in creative mode have an additional 0.5 blocks of block reach. -
ENTITY_REACH
Attack Range represents the distance at which a player may attack an entity. The default is 3 blocks. Players in creative mode have an additional 3 blocks of entity reach. The default of 3.0 is technically considered a bug by Mojang - see MC-172289 and MC-92484. However, updating this value would allow for longer-range attacks on vanilla servers, which makes some people mad. -
STEP_HEIGHT
Step Height Addition modifies the amount of blocks an entity may walk up without jumping.- See Also:
-
NONE_BIOME_MODIFIER_TYPE
public static final DeferredHolder<com.mojang.serialization.Codec<? extends BiomeModifier>,com.mojang.serialization.Codec<NoneBiomeModifier>> NONE_BIOME_MODIFIER_TYPENoop biome modifier. Can be used in a biome modifier json with "type": "neoforge:none". -
ADD_FEATURES_BIOME_MODIFIER_TYPE
public static final DeferredHolder<com.mojang.serialization.Codec<? extends BiomeModifier>,com.mojang.serialization.Codec<BiomeModifiers.AddFeaturesBiomeModifier>> ADD_FEATURES_BIOME_MODIFIER_TYPEStock biome modifier for adding features to biomes. -
REMOVE_FEATURES_BIOME_MODIFIER_TYPE
public static final DeferredHolder<com.mojang.serialization.Codec<? extends BiomeModifier>,com.mojang.serialization.Codec<BiomeModifiers.RemoveFeaturesBiomeModifier>> REMOVE_FEATURES_BIOME_MODIFIER_TYPEStock biome modifier for removing features from biomes. -
ADD_SPAWNS_BIOME_MODIFIER_TYPE
public static final DeferredHolder<com.mojang.serialization.Codec<? extends BiomeModifier>,com.mojang.serialization.Codec<BiomeModifiers.AddSpawnsBiomeModifier>> ADD_SPAWNS_BIOME_MODIFIER_TYPEStock biome modifier for adding mob spawns to biomes. -
REMOVE_SPAWNS_BIOME_MODIFIER_TYPE
public static final DeferredHolder<com.mojang.serialization.Codec<? extends BiomeModifier>,com.mojang.serialization.Codec<BiomeModifiers.RemoveSpawnsBiomeModifier>> REMOVE_SPAWNS_BIOME_MODIFIER_TYPEStock biome modifier for removing mob spawns from biomes. -
NONE_STRUCTURE_MODIFIER_TYPE
public static final DeferredHolder<com.mojang.serialization.Codec<? extends StructureModifier>,com.mojang.serialization.Codec<NoneStructureModifier>> NONE_STRUCTURE_MODIFIER_TYPENoop structure modifier. Can be used in a structure modifier json with "type": "neoforge:none". -
ANY_HOLDER_SET
Stock holder set type that represents any/all values in a registry. Can be used in a holderset object with{ "type": "neoforge:any" }
-
AND_HOLDER_SET
Stock holder set type that represents an intersection of other holdersets. Can be used in a holderset object with{ "type": "neoforge:and", "values": [list of holdersets] }
-
OR_HOLDER_SET
Stock holder set type that represents a union of other holdersets. Can be used in a holderset object with{ "type": "neoforge:or", "values": [list of holdersets] }
-
NOT_HOLDER_SET
Stock holder set type that represents all values in a registry except those in another given set. Can be used in a holderset object with
{ "type": "neoforge:not", "value": holderset }
-
INGREDIENT_TYPES
-
COMPOUND_INGREDIENT_TYPE
public static final DeferredHolder<IngredientType<?>,IngredientType<CompoundIngredient>> COMPOUND_INGREDIENT_TYPE -
STRICT_NBT_INGREDIENT_TYPE
public static final DeferredHolder<IngredientType<?>,IngredientType<StrictNBTIngredient>> STRICT_NBT_INGREDIENT_TYPE -
PARTIAL_NBT_INGREDIENT_TYPE
public static final DeferredHolder<IngredientType<?>,IngredientType<PartialNBTIngredient>> PARTIAL_NBT_INGREDIENT_TYPE -
DIFFERENCE_INGREDIENT_TYPE
public static final DeferredHolder<IngredientType<?>,IngredientType<DifferenceIngredient>> DIFFERENCE_INGREDIENT_TYPE -
INTERSECTION_INGREDIENT_TYPE
public static final DeferredHolder<IngredientType<?>,IngredientType<IntersectionIngredient>> INTERSECTION_INGREDIENT_TYPE -
RECIPE_SERIALIZERS
-
CONDITIONAL_RECIPE
-
CONDITION_CODECS
private static final DeferredRegister<com.mojang.serialization.Codec<? extends ICondition>> CONDITION_CODECS -
AND_CONDITION
public static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,com.mojang.serialization.Codec<AndCondition>> AND_CONDITION -
FALSE_CONDITION
public static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,com.mojang.serialization.Codec<FalseCondition>> FALSE_CONDITION -
ITEM_EXISTS_CONDITION
public static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,com.mojang.serialization.Codec<ItemExistsCondition>> ITEM_EXISTS_CONDITION -
MOD_LOADED_CONDITION
public static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,com.mojang.serialization.Codec<ModLoadedCondition>> MOD_LOADED_CONDITION -
NOT_CONDITION
public static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,com.mojang.serialization.Codec<NotCondition>> NOT_CONDITION -
OR_CONDITION
public static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,com.mojang.serialization.Codec<OrCondition>> OR_CONDITION -
TAG_EMPTY_CONDITION
public static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,com.mojang.serialization.Codec<TagEmptyCondition>> TAG_EMPTY_CONDITION -
TRUE_CONDITION
public static final DeferredHolder<com.mojang.serialization.Codec<? extends ICondition>,com.mojang.serialization.Codec<TrueCondition>> TRUE_CONDITION -
VANILLA_INGREDIENT_TYPES
-
VANILLA_INGREDIENT_TYPE
public static final DeferredHolder<IngredientType<?>,IngredientType<Ingredient>> VANILLA_INGREDIENT_TYPE -
VANILLA_FLUID_TYPES
-
EMPTY_TYPE
-
WATER_TYPE
-
LAVA_TYPE
-
enableMilkFluid
private static boolean enableMilkFluid -
BUCKET_EMPTY_MILK
-
BUCKET_FILL_MILK
-
MILK_TYPE
-
MILK
-
FLOWING_MILK
-
USE_SELECTORS_PERMISSION
-
-
Constructor Details
-
NeoForgeMod
public NeoForgeMod(net.neoforged.bus.api.IEventBus modEventBus, net.neoforged.api.distmarker.Dist dist)
-
-
Method Details
-
enableMilkFluid
public static void enableMilkFluid()Run this method during mod constructor to enable milk and add it to the Minecraft milk bucket -
preInit
public void preInit(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent evt) -
loadComplete
public void loadComplete(net.neoforged.fml.event.lifecycle.FMLLoadCompleteEvent event) -
serverStopping
-
gatherData
-
registerFluids
-
registerVanillaDisplayContexts
-
registerLootData
-
registerPermissionNodes
-