Tconstruct You Failed Again Muhaha the World Is Mine Mine
Best Java code snippets using crazypants.enderio.base.Log (Showing top 20 results out of 315)
@Override public @Nonnull NetworkManager getNetworkManager() { if (warnCount++ < 10 ) { Log. warn ( "Someone is trying to send network packets to a fake player. This may crash and that is NOT Ender IO's fault." ); } return super .netManager; }
public void loadSpawnConfig() { List<SpawnEntry> entries = SpawnConfig.loadSpawnConfig(); if (entries != null) { Log. info ( "Applying " + entries.size() + " spawn entries from config." ); for (SpawnEntry entry : entries) { addSpawn(entry); } } else { Log. info ( "No spawn entries found in config." ); } }
protected static void printBiomeNames(Biome[] biomes) { for (Biome biome : biomes) { if (biome != null) { Log. debug ( " - " , biome.getRegistryName()); } else { Log. debug ( " - null" ); } } }
@EventHandler public static void init(FMLPreInitializationEvent event) { if (isLoaded()) { Log. debug ( "PHASE PRE-INIT EIO TIC E" ); TicControl.preInitBeforeTic(event); Log. warn ( "TConstruct, you fail again, muhaha! The world is mine, mine!" ); } else { Log. warn ( "Tinkers' Construct integration NOT loaded. Tinkers' Construct is not installed" ); } }
@SubscribeEvent public static void registerFarmers(@Nonnull RegistryEvent.Register<IFarmerJoe> event) { ForestryFarmer farmer = new ForestryFarmer(); event.getRegistry().register(farmer); if (farmer.isValid()) { Log. info ( "Farming Station: Forestry integration for farming loaded" ); } else if (ForestryItemStacks.FORESTRY_SAPLING == null) { Log. warn ( "Farming Station: Forestry integration for farming loaded but could not find Forestry sapling." ); } else { Log. warn ( "Farming Station: Forestry integration for farming loaded but could not get species root for 'rootTrees'." ); } }
@SuppressWarnings( "null" ) @Override @Nonnull public <T> T get(@Nonnull Class<T> clazz) { Log. error ( "Client side method TextureSupplier.get() called on server!" ); return null; } };
private static void createBlockItem(IModObject mo, @Nonnull Register<Item> event) { Block block = mo.getBlock(); if (block instanceof IModObject.WithBlockItem) { final Item item = ((IModObject.WithBlockItem) block).createBlockItem(mo); if (item != null) { mo.setItem(item); event.getRegistry().register(item); reverseMapping.put(item, mo); } } else if (block == null) { Log. warn ( "ModObject:create: " + mo + " is does neither have a block nor an item" ); } else { final Item itemFromBlock = Item.getItemFromBlock(block); if (itemFromBlock != Items.AIR) { Log. error ( "ModObject:create: " + mo + " is still creating its blockItem in the block phase" ); mo.setItem(itemFromBlock); } } }
@SuppressWarnings( "null" ) @Override public void apply(@Nonnull ItemStack stack) { if (!EnderIO.DOMAIN.equals(stack.getItem().getRegistryName().getResourceDomain())) { Log. debug ( "Adding smelting recipes for non-EnderIO items is not recommended, recipe: " + recipeName + " (" + stack + " => " + result + ")" ); } final ItemStack smeltingResult = FurnaceRecipes.instance().getSmeltingResult(stack); if (Prep.isValid(smeltingResult)) { if (result.getItem() != smeltingResult.getItem() || result.getCount() != smeltingResult.getCount()) { Log. error ( "Cannot add smelting recipe " + recipeName + " (" + stack + " => " + result + ") because another mod already has registered a recipe " + stack + " => " + smeltingResult + "." ); } else { Log. debug ( "Smelting recipe " + recipeName + " (" + stack + " => " + result + ") is a real duplicate and will be ignored (XP may be different)." ); } } else { GameRegistry.addSmelting(stack, result, exp); } } });
public static boolean isBlockRegistered(String oreDictName) { if (isLoaded) { try { return getBlockData.invoke(null, oreDictName) != null; } catch (IllegalAccessException e) { Log. error ( "Failed to access Extreme Reactors integration. Reason:" ); e.printStackTrace(); } catch (IllegalArgumentException e) { Log. error ( "Failed to access Extreme Reactors integration. Reason:" ); e.printStackTrace(); } catch (InvocationTargetException e) { Log. error ( "Failed to access Extreme Reactors integration. Reason:" ); e.printStackTrace(); } } return true ; }
@SubscribeEvent public static void registerFertilizer(@Nonnull RegistryEvent.Register<IFertilizer> event) { final ForestryFertilizer fertilizer = new ForestryFertilizer(); event.getRegistry().register(fertilizer); if (fertilizer.isValid()) { Log. info ( "Farming Station: Forestry integration for fertilizing loaded" ); } else { Log. warn ( "Farming Station: Forestry integration for fertilizing loaded but could not find Forestry fertilizer." ); } }
public void addRecipe(@Nonnull Recipe recipe) { if (!recipe.isValid()) { Log. debug ( "Could not add invalid recipe: " + recipe); return ; } IRecipe rec = getRecipeForInput(RecipeLevel.IGNORE, getInput(recipe)); if (rec != null) { Log. warn ( "Not adding supplied recipe as a recipe already exists for the input: " + getInput(recipe)); return ; } recipes.add(recipe); }
private void checkCache(String name, ConcurrentMap<Pair<IBlockState, IModelState>, IBakedModel> cache1) { if (cache1.size() > 200 ) { Log. warn ( "Cache for " + name + " is at " + cache1.size() + " objects. Cleaning it..." ); cache1.clear(); } }
@SubscribeEvent public void on(ClientDisconnectionFromServerEvent event) { Log. info ( "Clearing Inventory Panel Client Database" ); dbRegistry.clear(); } }
@EventHandler public void loadComplete(@Nonnull FMLLoadCompleteEvent event) { Log. debug ( "PHASE LOAD COMPLETE START" ); processImc(FMLInterModComms.fetchRuntimeMessages( this )); Log. debug ( "PHASE LOAD COMPLETE END" ); }
public static boolean isTurbineBlockRegistered(String oreDictName) { if (isLoaded) { try { return getTurbineBlockData.invoke(null, oreDictName) != null; } catch (IllegalAccessException e) { Log. error ( "Failed to access Extreme Reactors integration. Reason:" ); e.printStackTrace(); } catch (IllegalArgumentException e) { Log. error ( "Failed to access Extreme Reactors integration. Reason:" ); e.printStackTrace(); } catch (InvocationTargetException e) { Log. error ( "Failed to access Extreme Reactors integration. Reason:" ); e.printStackTrace(); } } return true ; }
@EventHandler public static void init(@Nonnull FMLPreInitializationEvent event) { if (MEUtil.isMEEnabled()) { Log. warn ( "Applied Energistics conduits loaded. Let your networks connect!" ); } else { Log. warn ( "Applied Energistics conduits NOT loaded. Applied Energistics is not installed" ); } }
@Nullable @Override public Void apply(@Nullable ITheOneProbe theOneProbe) { if (TopConfig.enabled.get()) { probe = theOneProbe; Log. info ( "Enabled support for The One Probe" ); probe.registerProvider( this ); probe.registerProbeConfigProvider( this ); } else { Log. info ( "Support for The One Probe is DISABLED by a configuration setting" ); } return null; }
@SubscribeEvent public static void onPlayerLogout( final ClientDisconnectionFromServerEvent event) { resetOverrides(); Log. debug ( "Removed server config overrides for capacitor keys" ); }
public static boolean isFluidRegistered(String fluidName) { if (isLoaded) { try { return getFluidData.invoke(null, fluidName) != null; } catch (IllegalAccessException e) { Log. error ( "Failed to access Extreme Reactors integration. Reason:" ); e.printStackTrace(); } catch (IllegalArgumentException e) { Log. error ( "Failed to access Extreme Reactors integration. Reason:" ); e.printStackTrace(); } catch (InvocationTargetException e) { Log. error ( "Failed to access Extreme Reactors integration. Reason:" ); e.printStackTrace(); } } return true ; }
public static void init(@Nonnull FMLPostInitializationEvent event) { if (Loader.isModLoaded( "cofhcore" )) { try { Class.forName( "crazypants.enderio.base.integration.te.TEToolProvider" ).newInstance(); } catch (Exception e) { Log. warn ( "Could not find Thermal Expansion Wrench definition. Wrench integration with it may fail" ); } } }
garlandthiparract.blogspot.com
Source: https://www.tabnine.com/code/java/classes/crazypants.enderio.base.Log
0 Response to "Tconstruct You Failed Again Muhaha the World Is Mine Mine"
Post a Comment