@Mod.EventBusSubscriber(modid = LibMisc.MOD_ID) public class SubTileVinculotus extends SubTileFunctional {
@Mod.EventBusSubscriber(value = Side.CLIENT, modid = LibMisc.MOD_ID) public final class AstrolabePreviewHandler {
@Mod.EventBusSubscriber(modid = LibMisc.MOD_ID) public class BlockFelPumpkin extends BlockMod implements ILexiconable { private static final ResourceLocation LOOT_TABLE = new ResourceLocation(LibMisc.MOD_ID, "fel_blaze");
@Mod.EventBusSubscriber(value = Side.CLIENT, modid = LibMisc.MOD_ID) public class BergamuteEventHandler {
@Mod.EventBusSubscriber(modid = LibMisc.MOD_ID) public class BlockRedStringInterceptor extends BlockRedString {
@Mod.EventBusSubscriber(value = Side.CLIENT, modid = LibMisc.MOD_ID) public class LightningHandler {
@Mod.EventBusSubscriber(value = Side.CLIENT, modid = LibMisc.MOD_ID) public final class DebugHandler {
@Mod.EventBusSubscriber(modid = LibMisc.MOD_ID, value = Side.CLIENT) public class CorporeaInputHandler {
@Mod.EventBusSubscriber(modid = LibMisc.MOD_ID) public class ItemGoddessCharm extends ItemBauble implements IManaUsingItem, IBaubleRender {
@Mod.EventBusSubscriber(modid = LibMisc.MOD_ID) public final class PixieHandler {
@Mod.EventBusSubscriber(modid = Util.MODID) public abstract class Sounds {
@SideOnly(Side.CLIENT) @Mod.EventBusSubscriber(Side.CLIENT) public class WoodenHopperGUIDrawEvent {
@Mod.EventBusSubscriber(Side.CLIENT) public class RangedRenderEvents {
@Mod.EventBusSubscriber(value = Side.CLIENT, modid = LibMisc.MOD_ID) public final class VersionChecker {
@Mod.EventBusSubscriber(modid = LibMisc.MOD_ID) public class ModPotions { public static final Potion soulCross = new PotionSoulCross(); public static final Potion featherfeet = new PotionFeatherfeet(); public static final Potion emptiness = new PotionEmptiness(); public static final Potion bloodthrst = new PotionBloodthirst(); public static final Potion allure = new PotionAllure(); public static final Potion clear = new PotionClear(); @SubscribeEvent public static void registerPotions(RegistryEvent.Register<Potion> evt) { evt.getRegistry().register(soulCross); evt.getRegistry().register(featherfeet); evt.getRegistry().register(emptiness); evt.getRegistry().register(bloodthrst); evt.getRegistry().register(allure); evt.getRegistry().register(clear); } }
@Mod.EventBusSubscriber(Side.CLIENT) public class RangedEvents { @SubscribeEvent public static void onToolPartReplacement(TinkerEvent.OnToolPartReplacement event) { if(event.toolStack.getItem() == TinkerRangedWeapons.bolt) { List<ItemStack> extraParts = event.replacementParts.stream() .filter(Objects::nonNull) .filter(stack -> stack.getItem() == TinkerTools.boltCore) .map(BoltCore::getHeadStack) .collect(Collectors.toList()); event.replacementParts.addAll(new ArrayList<>(extraParts)); } } }
@Mod.EventBusSubscriber(modid = LibMisc.MOD_ID) public static class ChangeListener { @SubscribeEvent public static void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) { if(eventArgs.getModID().equals(LibMisc.MOD_ID)) load(); } } }
@Mod.EventBusSubscriber(value = Side.CLIENT, modid = LibMisc.MOD_ID) public final class SkyblockRenderEvents { @SubscribeEvent public static void onRender(RenderWorldLastEvent event) { World world = Minecraft.getMinecraft().world; if(ConfigHandler.enableFancySkybox && world.provider.getDimension() == 0 && (ConfigHandler.enableFancySkyboxInNormalWorlds || WorldTypeSkyblock.isWorldSkyblock(Minecraft.getMinecraft().world))) { if(!(world.provider.getSkyRenderer() instanceof SkyblockSkyRenderer)) world.provider.setSkyRenderer(new SkyblockSkyRenderer()); } } }
@Mod.EventBusSubscriber(modid = LibMisc.MOD_ID) public final class CommonTickHandler { private CommonTickHandler() {} @SubscribeEvent public static void onTick(WorldTickEvent event) { if(event.phase == Phase.END) { CorporeaHelper.clearCache(); } } }
@Mod.EventBusSubscriber(value = Side.CLIENT, modid = LibMisc.MOD_ID) public final class TooltipHandler { @SubscribeEvent(priority = EventPriority.HIGHEST) public static void onTooltipEvent(ItemTooltipEvent event) { if(event.getItemStack().hasTagCompound() && ItemNBTHelper.getBoolean(event.getItemStack(), ItemKeepIvy.TAG_KEEP, false)) event.getToolTip().add(I18n.format("botaniamisc.hasKeepIvy")); } }