Package com.li64.tide.util
Class TideUtils
java.lang.Object
com.li64.tide.util.TideUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<net.minecraft.world.item.ItemStack>checkForOverrides(List<net.minecraft.world.item.ItemStack> list, TideFishingHook hook, net.minecraft.server.level.ServerLevel level) static voidcheckPageCompletion(TidePlayerData data, JournalPage page, net.minecraft.server.level.ServerPlayer player) static intgetBaitLuck(net.minecraft.world.item.ItemStack stack) static intgetBaitSpeed(net.minecraft.world.item.ItemStack stack) static net.minecraft.resources.ResourceLocationgetBiomeLootTable(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biomeHolder) static net.minecraft.resources.ResourceLocationgetCrateLoot(double x, double y, double z, net.minecraft.world.level.material.FluidState fluid, net.minecraft.world.level.Level level) static List<net.minecraft.world.item.Item>getFishFromPageName(String name) static List<net.minecraft.world.item.Item>getFishFromProfileList(List<JournalLayout.Profile> profiles) static net.minecraft.world.item.ItemStackgetHeldBaitItem(net.minecraft.world.entity.player.Player player) static net.minecraft.world.item.ItemgetItemFromName(String name) static TideUtils.LootLayergetLayerAt(double y) static StringgetNameFromItem(net.minecraft.world.item.Item item) static JournalPagegetPageByName(String name) static JournalPagegetPageByNumber(int pageNumber) static net.minecraft.network.chat.ComponentgetPageToastDesc(JournalPage page) static net.minecraft.world.item.ItemStackgetPageToastIcon(JournalPage page) static JournalLayout.ProfilegetProfileFromItem(net.minecraft.world.item.ItemStack item) static net.minecraft.resources.ResourceLocationgetTideLootTable(double x, double y, double z, net.minecraft.world.level.material.FluidState fluid, net.minecraft.world.level.Level level, net.minecraft.util.RandomSource random) static booleanisBait(net.minecraft.world.item.ItemStack stack) static booleanisCategoryCompleted(TidePlayerData data, JournalPage page) static booleanisHoldingBait(net.minecraft.world.entity.player.Player player) static booleanstatic booleanisJournalFish(net.minecraft.world.item.ItemStack stack) static booleanmoddedDimension(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) static net.minecraft.network.chat.ComponentremoveRawTextInName(net.minecraft.network.chat.Component initialName) static booleanshouldGrabTideLootTable(List<net.minecraft.world.item.ItemStack> items, net.minecraft.world.level.material.FluidState fluid) static voidunlockFishForCategory(net.minecraft.server.level.ServerPlayer player, String name) static voidunlockPage(net.minecraft.server.level.ServerPlayer player, JournalPage page)
-
Constructor Details
-
TideUtils
public TideUtils()
-
-
Method Details
-
moddedDimension
public static boolean moddedDimension(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) -
getLayerAt
-
checkForOverrides
public static List<net.minecraft.world.item.ItemStack> checkForOverrides(List<net.minecraft.world.item.ItemStack> list, TideFishingHook hook, net.minecraft.server.level.ServerLevel level) -
shouldGrabTideLootTable
public static boolean shouldGrabTideLootTable(List<net.minecraft.world.item.ItemStack> items, net.minecraft.world.level.material.FluidState fluid) -
getTideLootTable
public static net.minecraft.resources.ResourceLocation getTideLootTable(double x, double y, double z, net.minecraft.world.level.material.FluidState fluid, net.minecraft.world.level.Level level, net.minecraft.util.RandomSource random) -
getBiomeLootTable
public static net.minecraft.resources.ResourceLocation getBiomeLootTable(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biomeHolder) -
getCrateLoot
public static net.minecraft.resources.ResourceLocation getCrateLoot(double x, double y, double z, net.minecraft.world.level.material.FluidState fluid, net.minecraft.world.level.Level level) -
isJournalFish
public static boolean isJournalFish(net.minecraft.world.item.ItemStack stack) -
getNameFromItem
-
getItemFromName
-
checkPageCompletion
public static void checkPageCompletion(TidePlayerData data, JournalPage page, net.minecraft.server.level.ServerPlayer player) -
isCategoryCompleted
-
unlockPage
-
unlockFishForCategory
public static void unlockFishForCategory(net.minecraft.server.level.ServerPlayer player, String name) -
isInPage
-
removeRawTextInName
public static net.minecraft.network.chat.Component removeRawTextInName(net.minecraft.network.chat.Component initialName) -
getPageToastIcon
-
getPageToastDesc
-
getFishFromProfileList
public static List<net.minecraft.world.item.Item> getFishFromProfileList(List<JournalLayout.Profile> profiles) -
getFishFromPageName
-
getPageByName
-
getPageByNumber
-
getProfileFromItem
-
isHoldingBait
public static boolean isHoldingBait(net.minecraft.world.entity.player.Player player) -
getHeldBaitItem
public static net.minecraft.world.item.ItemStack getHeldBaitItem(net.minecraft.world.entity.player.Player player) -
isBait
public static boolean isBait(net.minecraft.world.item.ItemStack stack) -
getBaitSpeed
public static int getBaitSpeed(net.minecraft.world.item.ItemStack stack) -
getBaitLuck
public static int getBaitLuck(net.minecraft.world.item.ItemStack stack)
-