diff --git a/src/main/java/jackyy/exchangers/handler/ExchangerHandler.java b/src/main/java/jackyy/exchangers/handler/ExchangerHandler.java index 55f31ca..3476bf6 100644 --- a/src/main/java/jackyy/exchangers/handler/ExchangerHandler.java +++ b/src/main/java/jackyy/exchangers/handler/ExchangerHandler.java @@ -121,7 +121,7 @@ public static void toggleForceDropItems(EntityPlayer player, ItemStack stack) { ChatHelper.msgPlayer(player, toggle ? "msg.force_drop_items.on" : "msg.force_drop_items.off"); } - private static boolean isWhitelisted(World world, BlockPos pos) { + public static boolean isWhitelisted(World world, BlockPos pos) { for (String block : ModConfig.misc.blocksWhitelist) { if (world.getBlockState(pos).getBlock().getRegistryName().equals(new ResourceLocation(block))) { return true; @@ -130,7 +130,7 @@ private static boolean isWhitelisted(World world, BlockPos pos) { return world.getBlockState(pos).getBlock().getRegistryName().equals("tconstruct:seared"); } - private static boolean isBlacklisted(World world, BlockPos pos) { + public static boolean isBlacklisted(World world, BlockPos pos) { for (String block : ModConfig.misc.blocksBlacklist) { if (world.getBlockState(pos).getBlock().getRegistryName().equals(new ResourceLocation(block))) { return true; @@ -241,7 +241,7 @@ public static void selectBlock(ItemStack stack, EntityPlayer player, World world NBTUtil.writeBlockState(tagCompound.getCompoundTag("blockstate"), state); } - private static Set findSuitableBlocks(ItemStack stack, World world, EnumFacing sideHit, BlockPos pos, Block centerBlock, int centerMeta) { + public static Set findSuitableBlocks(ItemStack stack, World world, EnumFacing sideHit, BlockPos pos, Block centerBlock, int centerMeta) { Set coordinates = new HashSet<>(); int mode = stack.getTagCompound().getInteger("mode"); @@ -394,7 +394,7 @@ private static void giveItem(World world, EntityPlayer player, ItemStack oldStac } } - static NBTTagCompound getTagCompound(ItemStack stack) { + public static NBTTagCompound getTagCompound(ItemStack stack) { NBTTagCompound tagCompound = stack.getTagCompound(); if (tagCompound == null) { tagCompound = new NBTTagCompound();