Class ResearchdApi
java.lang.Object
com.portingdeadmods.researchd.api.ResearchdApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ResearchEffectData<?>>
TgetEffectDataForPlayer(net.minecraft.world.entity.player.Player player, ResearchEffectDataType<T> type) static <T extends ResearchEffectData<?>>
TgetEffectDataForPlayer(net.minecraft.world.entity.player.Player player, Supplier<ResearchEffectDataType<T>> type) static <T extends ResearchEffectData<?>>
TgetEffectDataForTeam(net.minecraft.world.level.Level level, UUID teamId, ResearchEffectDataType<T> type) static <T extends ResearchEffectData<?>>
TgetEffectDataForTeam(net.minecraft.world.level.Level level, UUID teamId, Supplier<ResearchEffectDataType<T>> type) static @Nullable UUIDgetOrMigratePlacedByTeam(net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.world.level.Level level) static ResearchEffectManagergetResearchEffectManager(net.minecraft.world.level.Level level) static @Nullable ResearchManagerstatic @Nullable ResearchTeamManagergetTeamManager(net.minecraft.world.level.Level level) 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.level.Level level, UUID teamId, net.minecraft.resources.ResourceKey<net.minecraft.world.level.dimension.DimensionType> dimension) static booleanisItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceKey<net.minecraft.world.item.Item> itemKey) static booleanisItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item) static booleanisItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) static booleanisItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.ItemLike item) static booleanisItemBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.resources.ResourceKey<net.minecraft.world.item.Item> itemKey) static booleanisItemBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.world.item.Item item) static booleanisItemBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.world.item.ItemStack stack) static booleanisItemBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.world.level.ItemLike item) static booleanisRecipeBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation recipeId) static booleanisRecipeBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.crafting.RecipeHolder<?> holder) static booleanisRecipeBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.resources.ResourceLocation recipeId) static booleanisRecipeBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.world.item.crafting.RecipeHolder<?> holder) static voidstatic voidopenScreenForResearch(net.minecraft.resources.ResourceKey<Research> research) static void
-
Constructor Details
-
ResearchdApi
public ResearchdApi()
-
-
Method Details
-
openScreen
public static void openScreen() -
openTeamScreen
public static void openTeamScreen() -
openScreenForResearch
-
getTeamManager
@Nullable public static @Nullable ResearchTeamManager getTeamManager(net.minecraft.world.level.Level level) -
getResearchManager
-
getResearchEffectManager
-
getEffectDataForPlayer
@Nullable public static <T extends ResearchEffectData<?>> T getEffectDataForPlayer(net.minecraft.world.entity.player.Player player, ResearchEffectDataType<T> type) -
getEffectDataForPlayer
@Nullable public static <T extends ResearchEffectData<?>> T getEffectDataForPlayer(net.minecraft.world.entity.player.Player player, Supplier<ResearchEffectDataType<T>> type) -
getEffectDataForTeam
@Nullable public static <T extends ResearchEffectData<?>> T getEffectDataForTeam(net.minecraft.world.level.Level level, UUID teamId, ResearchEffectDataType<T> type) -
getEffectDataForTeam
@Nullable public static <T extends ResearchEffectData<?>> T getEffectDataForTeam(net.minecraft.world.level.Level level, UUID teamId, Supplier<ResearchEffectDataType<T>> type) -
isItemBlocked
public static boolean isItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item) -
isItemBlocked
public static boolean isItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) -
isItemBlocked
public static boolean isItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.ItemLike item) -
isItemBlocked
public static boolean isItemBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceKey<net.minecraft.world.item.Item> itemKey) -
isItemBlocked
public static boolean isItemBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.world.item.Item item) -
isItemBlocked
public static boolean isItemBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.world.item.ItemStack stack) -
isItemBlocked
public static boolean isItemBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.world.level.ItemLike item) -
isItemBlocked
public static boolean isItemBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.resources.ResourceKey<net.minecraft.world.item.Item> itemKey) -
isRecipeBlocked
public static boolean isRecipeBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation recipeId) -
isRecipeBlocked
public static boolean isRecipeBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.crafting.RecipeHolder<?> holder) -
isRecipeBlocked
public static boolean isRecipeBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.resources.ResourceLocation recipeId) -
isRecipeBlocked
public static boolean isRecipeBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.world.item.crafting.RecipeHolder<?> holder) -
isDimensionBlocked
public static boolean isDimensionBlocked(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceKey<net.minecraft.world.level.dimension.DimensionType> dimension) -
isDimensionBlocked
public static boolean isDimensionBlocked(net.minecraft.world.level.Level level, UUID teamId, net.minecraft.resources.ResourceKey<net.minecraft.world.level.dimension.DimensionType> dimension) -
getOrMigratePlacedByTeam
@Nullable public static @Nullable UUID getOrMigratePlacedByTeam(net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.world.level.Level level)
-