Class NeoForgeCommonPlatformImpl
java.lang.Object
net.dillon.dillonlib.platform.common.CommonModPlatform
net.dillon.dillonlib.platform.common.NeoForgeCommonPlatformImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.neoforged.neoforge.registries.DeferredRegister<net.minecraft.world.item.CreativeModeTab> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddItemsToTab(net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent event) Registers the creative mode tab event modification.voidaddItemToGroup(net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab> tab, Supplier<net.minecraft.world.item.ItemStack> stack) Adds an item to an item group.commonModVersion(String modId) @NotNull PathGets the config directory for the supported platform.booleanbooleanbooleanvoidregisterItemGroup(SimpleItemGroupFactory simpleItemGroup) Registers an item group when an item group factory is created.voidTicks all simple scheduled tasks.
-
Field Details
-
ITEM_GROUPS
public static final net.neoforged.neoforge.registries.DeferredRegister<net.minecraft.world.item.CreativeModeTab> ITEM_GROUPS
-
-
Constructor Details
-
NeoForgeCommonPlatformImpl
public NeoForgeCommonPlatformImpl()
-
-
Method Details
-
configDir
Description copied from class:CommonModPlatformGets the config directory for the supported platform.- Specified by:
configDirin classCommonModPlatform
-
isEnvironmentClient
public boolean isEnvironmentClient()- Specified by:
isEnvironmentClientin classCommonModPlatform- Returns:
- if the environment side is client.
-
isEnvironmentServer
public boolean isEnvironmentServer()- Specified by:
isEnvironmentServerin classCommonModPlatform- Returns:
- if the environment side is server.
-
isDevelopmentEnvironment
public boolean isDevelopmentEnvironment()- Specified by:
isDevelopmentEnvironmentin classCommonModPlatform- Returns:
- if the game was launched in a development environment.
-
commonModVersion
- Specified by:
commonModVersionin classCommonModPlatform- Returns:
- the common mod version for Dillon's mods.
-
tickScheduledTasks
public void tickScheduledTasks()Description copied from class:CommonModPlatformTicks all simple scheduled tasks.- Specified by:
tickScheduledTasksin classCommonModPlatform- See Also:
-
registerItemGroup
Description copied from class:CommonModPlatformRegisters an item group when an item group factory is created.- Specified by:
registerItemGroupin classCommonModPlatform- See Also:
-
addItemToGroup
public void addItemToGroup(net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab> tab, Supplier<net.minecraft.world.item.ItemStack> stack) Description copied from class:CommonModPlatformAdds an item to an item group.- Specified by:
addItemToGroupin classCommonModPlatform- See Also:
-
addItemsToTab
public static void addItemsToTab(net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent event) Registers the creative mode tab event modification.
-