Class Researchd

java.lang.Object
com.portingdeadmods.researchd.Researchd

public final class Researchd extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
     
    static final String
     
    static final String
     
    static 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 form Supplier<AttachmentType<ResearchEffectData<?>>>
    Also PS: I will always hate generics (heart)
  • Constructor Summary

    Constructors
    Constructor
    Description
    Researchd(net.neoforged.bus.api.IEventBus modEventBus, net.neoforged.fml.ModContainer modContainer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    debug(String category, Object... message)
    Prints a debug message to the console if the 'consoleDebug' config option is enabled.
    static boolean
    isDimensionBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceKey<net.minecraft.world.level.dimension.DimensionType> dimension)
     
    static boolean
    isDimensionBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation dimensionId)
     
    static boolean
    isItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceKey<net.minecraft.world.item.Item> item)
     
    static boolean
    isItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation itemId)
     
    static boolean
    isItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.ItemLike item)
     
    static boolean
    isRecipeBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation recipeId)
     
    static void
    registerResearchEffectData(Supplier<? extends net.neoforged.neoforge.attachment.AttachmentType<? extends ResearchEffectData<?>>> data)
     
    static net.minecraft.resources.ResourceLocation
    rl(String path)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODID

      public static final String MODID
      See Also:
    • MODNAME

      public static final String MODNAME
      See Also:
    • RESEARCH_EFFECT_DATA_TYPES

      public static final Set<Supplier<? extends net.neoforged.neoforge.attachment.AttachmentType<? extends ResearchEffectData<?>>>> RESEARCH_EFFECT_DATA_TYPES
      Mods will need to register all of their different ResearchEffectData entries here to be picked up by refreshResearches(); Anything registered should only be of form Supplier<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

      public static void debug(String category, Object... message)
      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 console
      message - Any number of objects that will be concatenated into a single message
    • rl

      public static net.minecraft.resources.ResourceLocation rl(String path)
    • 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)