类 ForgeMod
java.lang.Object
net.minecraftforge.common.ForgeMod
-
字段概要
字段修饰符和类型字段说明static final RegistryObject<com.mojang.serialization.Codec<ForgeBiomeModifiers.AddFeaturesBiomeModifier>>
Stock biome modifier for adding features to biomes.static final RegistryObject<com.mojang.serialization.Codec<ForgeBiomeModifiers.AddSpawnsBiomeModifier>>
Stock biome modifier for adding mob spawns to biomes.static 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.Codec<? extends BiomeModifier>>
static final RegistryObject<Attribute>
Reach Distance represents the distance at which a player may interact with the world.static final RegistryObject<SoundEvent>
static final RegistryObject<SoundEvent>
private static final DeferredRegister<ArgumentTypeInfo<?,
?>> static final RegistryObject<FluidType>
private static boolean
static final RegistryObject<Attribute>
static final RegistryObject<Attribute>
Attack Range represents the distance at which a player may attack an entity.private static final RegistryObject<EnumArgument.Info>
static final RegistryObject<Fluid>
private static final org.apache.logging.log4j.Marker
private static final DeferredRegister<HolderSetType>
private static ForgeMod
static final RegistryObject<FluidType>
private static final org.apache.logging.log4j.Logger
static final RegistryObject<Fluid>
static final RegistryObject<FluidType>
private static final RegistryObject<SingletonArgumentInfo<ModIdArgument>>
static final RegistryObject<Attribute>
static final RegistryObject<com.mojang.serialization.Codec<NoneBiomeModifier>>
Noop biome modifier.static final RegistryObject<com.mojang.serialization.Codec<NoneStructureModifier>>
Noop structure modifier.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.static final ResourceKey<DamageType>
Used in place ofDamageSources.magic()
for damage dealt byMobEffects.POISON
.static final RegistryObject<com.mojang.serialization.Codec<ForgeBiomeModifiers.RemoveFeaturesBiomeModifier>>
Stock biome modifier for removing features from biomes.static final RegistryObject<com.mojang.serialization.Codec<ForgeBiomeModifiers.RemoveSpawnsBiomeModifier>>
Stock biome modifier for removing mob spawns from biomes.static final RegistryObject<Attribute>
Step Height Addition modifies the amount of blocks an entity may walk up without jumping.static final RegistryObject<Attribute>
已过时, 待删除: 此 API 元素将从以后的版本中删除。private static final DeferredRegister<com.mojang.serialization.Codec<? extends StructureModifier>>
static final RegistryObject<Attribute>
static final PermissionNode<Boolean>
private static final DeferredRegister<FluidType>
static final String
static final RegistryObject<FluidType>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
Run this method during mod constructor to enable milk and add it to the Minecraft milk bucketvoid
gatherData
(GatherDataEvent event) static ForgeMod
void
loadComplete
(net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent event) void
void
void
preInit
(net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent evt) void
registerFluids
(RegisterEvent event) void
registerLootData
(RegisterEvent event) void
void
void
void
-
字段详细资料
-
VERSION_CHECK_CAT
- 另请参阅:
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
FORGEMOD
private static final org.apache.logging.log4j.Marker FORGEMOD -
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
-
MODID_COMMAND_ARGUMENT_TYPE
private static final RegistryObject<SingletonArgumentInfo<ModIdArgument>> MODID_COMMAND_ARGUMENT_TYPE -
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. -
STEP_HEIGHT_ADDITION
@Deprecated(forRemoval=true, since="1.20.1") public static final RegistryObject<Attribute> STEP_HEIGHT_ADDITION已过时, 待删除: 此 API 元素将从以后的版本中删除。UseSTEP_HEIGHT
-
NONE_BIOME_MODIFIER_TYPE
public static final RegistryObject<com.mojang.serialization.Codec<NoneBiomeModifier>> NONE_BIOME_MODIFIER_TYPENoop biome modifier. Can be used in a biome modifier json with "type": "forge:none". -
ADD_FEATURES_BIOME_MODIFIER_TYPE
public static final RegistryObject<com.mojang.serialization.Codec<ForgeBiomeModifiers.AddFeaturesBiomeModifier>> ADD_FEATURES_BIOME_MODIFIER_TYPEStock biome modifier for adding features to biomes. -
REMOVE_FEATURES_BIOME_MODIFIER_TYPE
public static final RegistryObject<com.mojang.serialization.Codec<ForgeBiomeModifiers.RemoveFeaturesBiomeModifier>> REMOVE_FEATURES_BIOME_MODIFIER_TYPEStock biome modifier for removing features from biomes. -
ADD_SPAWNS_BIOME_MODIFIER_TYPE
public static final RegistryObject<com.mojang.serialization.Codec<ForgeBiomeModifiers.AddSpawnsBiomeModifier>> ADD_SPAWNS_BIOME_MODIFIER_TYPEStock biome modifier for adding mob spawns to biomes. -
REMOVE_SPAWNS_BIOME_MODIFIER_TYPE
public static final RegistryObject<com.mojang.serialization.Codec<ForgeBiomeModifiers.RemoveSpawnsBiomeModifier>> REMOVE_SPAWNS_BIOME_MODIFIER_TYPEStock biome modifier for removing mob spawns from biomes. -
NONE_STRUCTURE_MODIFIER_TYPE
public static final RegistryObject<com.mojang.serialization.Codec<NoneStructureModifier>> NONE_STRUCTURE_MODIFIER_TYPENoop structure modifier. Can be used in a structure modifier json with "type": "forge: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": "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
-
enableMilkFluid
private static boolean enableMilkFluid -
BUCKET_EMPTY_MILK
-
BUCKET_FILL_MILK
-
MILK_TYPE
-
MILK
-
FLOWING_MILK
-
POISON_DAMAGE
Used in place ofDamageSources.magic()
for damage dealt byMobEffects.POISON
. -
INSTANCE
-
USE_SELECTORS_PERMISSION
-
-
构造器详细资料
-
ForgeMod
public ForgeMod()
-
-
方法详细资料
-
getInstance
-
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.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent evt) -
loadComplete
public void loadComplete(net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent event) -
serverStopping
-
mappingChanged
-
gatherData
-
missingSoundMapping
-
registerFluids
-
registerVanillaDisplayContexts
-
registerRecipeSerializers
-
registerLootData
-
registerPermissionNodes
-
STEP_HEIGHT