Package com.portingdeadmods.researchd
Class Researchd
java.lang.Object
com.portingdeadmods.researchd.Researchd
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.Loggerstatic final Stringstatic final Stringstatic final Set<Supplier<? extends net.neoforged.neoforge.attachment.AttachmentType<? extends ResearchEffectData<?>>>> Mods will need to register all of their different ResearchEffectData entries here to be picked up by refreshResearches(); Anything registered should only be of formSupplier<AttachmentType<ResearchEffectData<?>>>
Also PS: I will always hate generics (heart) -
Constructor Summary
ConstructorsConstructorDescriptionResearchd(net.neoforged.bus.api.IEventBus modEventBus, net.neoforged.fml.ModContainer modContainer) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidPrints a debug message to the console if the 'consoleDebug' config option is enabled.static booleanisDimensionBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceKey<net.minecraft.world.level.dimension.DimensionType> dimension) static booleanisDimensionBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation dimensionId) static booleanisItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceKey<net.minecraft.world.item.Item> item) static booleanisItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation itemId) static booleanisItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.ItemLike item) static booleanisRecipeBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation recipeId) static voidregisterResearchEffectData(Supplier<? extends net.neoforged.neoforge.attachment.AttachmentType<? extends ResearchEffectData<?>>> data) static net.minecraft.resources.ResourceLocation
-
Field Details
-
MODID
- See Also:
-
MODNAME
- See Also:
-
RESEARCH_EFFECT_DATA_TYPES
public static final Set<Supplier<? extends net.neoforged.neoforge.attachment.AttachmentType<? extends ResearchEffectData<?>>>> RESEARCH_EFFECT_DATA_TYPESMods will need to register all of their different ResearchEffectData entries here to be picked up by refreshResearches(); Anything registered should only be of formSupplier<AttachmentType<ResearchEffectData<?>>>
Also PS: I will always hate generics (heart) -
LOGGER
public static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
Researchd
public Researchd(net.neoforged.bus.api.IEventBus modEventBus, net.neoforged.fml.ModContainer modContainer)
-
-
Method Details
-
registerResearchEffectData
public static void registerResearchEffectData(Supplier<? extends net.neoforged.neoforge.attachment.AttachmentType<? extends ResearchEffectData<?>>> data) -
debug
Prints a debug message to the console if the 'consoleDebug' config option is enabled.- Parameters:
category- The 'category' of the debug message, used to filter messages in the consolemessage- Any number of objects that will be concatenated into a single message
-
rl
-
isRecipeBlocked
public static boolean isRecipeBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation recipeId) -
isItemBlocked
public static boolean isItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation itemId) -
isItemBlocked
public static boolean isItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceKey<net.minecraft.world.item.Item> item) -
isItemBlocked
public static boolean isItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.ItemLike item) -
isDimensionBlocked
public static boolean isDimensionBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation dimensionId) -
isDimensionBlocked
public static boolean isDimensionBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceKey<net.minecraft.world.level.dimension.DimensionType> dimension)
-