Package net.minecraftforge.common
Class ForgeMod
java.lang.Object
net.minecraftforge.common.ForgeMod
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RegistryObject
<HolderSetType> Stock holder set type that represents an intersection of other holdersets.static final RegistryObject
<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.MapCodec<? extends BiomeModifier>> static final RegistryObject
<SoundEvent> static final RegistryObject
<SoundEvent> private static final DeferredRegister
<ArgumentTypeInfo<?, ?>> private static final DeferredRegister
<com.mojang.serialization.MapCodec<? extends ICondition>> static final RegistryObject
<FluidType> private static boolean
static final RegistryObject
<Fluid> private static final org.apache.logging.log4j.Marker
private static final DeferredRegister
<HolderSetType> private static Method
private static final DeferredRegister
<IIngredientSerializer<?>> private static ForgeMod
static final RegistryObject
<FluidType> private static final org.apache.logging.log4j.Logger
private static final DeferredRegister
<LootItemConditionType> static final RegistryObject
<Fluid> static final RegistryObject
<FluidType> static final RegistryObject
<Attribute> static final RegistryObject
<HolderSetType> Stock holder set type that represents all values in a registry except those in another given set.static final RegistryObject
<HolderSetType> Stock holder set type that represents a union of other holdersets.private static final DeferredRegister
<RecipeSerializer<?>> private static final List
<DeferredRegister<?>> private static final DeferredRegister
<com.mojang.serialization.MapCodec<? extends StructureModifier>> static final RegistryObject
<Attribute> static final PermissionNode
<Boolean> private static final DeferredRegister
<FluidType> static final String
static final RegistryObject
<FluidType> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> void
addAlias
(IForgeRegistry<T> registry, ResourceLocation from, ResourceLocation to) Deprecated, for removal: This API element is subject to removal in a future version.private static void
private static <T> DeferredRegister
<T> deferred
(ResourceKey<Registry<T>> key) private static <T> DeferredRegister
<T> deferred
(ResourceKey<Registry<T>> key, String modid) static void
Run this method during mod constructor to enable milk and add it to the Minecraft milk bucketvoid
gatherData
(GatherDataEvent event) static ForgeMod
private void
void
loadComplete
(FMLLoadCompleteEvent event) void
void
void
registerFluids
(RegisterEvent event) void
void
void
void
-
Field Details
-
VERSION_CHECK_CAT
- See Also:
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
FORGEMOD
private static final org.apache.logging.log4j.Marker FORGEMOD -
registries
-
COMMAND_ARGUMENT_TYPES
-
ATTRIBUTES
-
SWIM_SPEED
-
NAMETAG_DISTANCE
-
BIOME_MODIFIER_SERIALIZERS
private static final DeferredRegister<com.mojang.serialization.MapCodec<? extends BiomeModifier>> BIOME_MODIFIER_SERIALIZERS -
STRUCTURE_MODIFIER_SERIALIZERS
private static final DeferredRegister<com.mojang.serialization.MapCodec<? extends StructureModifier>> STRUCTURE_MODIFIER_SERIALIZERS -
HOLDER_SET_TYPES
-
ANY_HOLDER_SET
Stock holder set type that represents any/all values in a registry. Can be used in a holderset object with{ "type": "forge:any" }
-
AND_HOLDER_SET
Stock holder set type that represents an intersection of other holdersets. Can be used in a holderset object with{ "type": "forge: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": "forge: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": "forge:not", "value": holderset }
-
VANILLA_FLUID_TYPES
-
EMPTY_TYPE
-
WATER_TYPE
-
LAVA_TYPE
-
LOOT_CONDITION_TYPES
-
CONDITION_SERIALIZERS
private static final DeferredRegister<com.mojang.serialization.MapCodec<? extends ICondition>> CONDITION_SERIALIZERS -
RECIPE_SERIALIZERS
-
INGREDIENT_SERIALIZERS
-
enableMilkFluid
private static boolean enableMilkFluid -
BUCKET_EMPTY_MILK
-
BUCKET_FILL_MILK
-
MILK_TYPE
-
MILK
-
FLOWING_MILK
-
INSTANCE
-
USE_SELECTORS_PERMISSION
-
implAddExportsOrOpens
-
-
Constructor Details
-
ForgeMod
public ForgeMod()
-
-
Method Details
-
deferred
-
deferred
-
getInstance
-
enableMilkFluid
public static void enableMilkFluid()Run this method during mod constructor to enable milk and add it to the Minecraft milk bucket -
preInit
-
loadComplete
-
serverStopping
-
mappingChanged
-
tagsUpdated
-
gatherData
-
registerFluids
-
registerVanillaDisplayContexts
-
registerPermissionNodes
-
addAlias
@Deprecated(forRemoval=true, since="1.20") private static <T> void addAlias(IForgeRegistry<T> registry, ResourceLocation from, ResourceLocation to) Deprecated, for removal: This API element is subject to removal in a future version.TODO: Remove whenForgeRegistry.addAlias(ResourceLocation, ResourceLocation)
is elevated toIForgeRegistry
. -
hackDNSResolver
private void hackDNSResolver() -
addOpen
- Throws:
Exception
-