Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Shadows-of-Fire's full-sized avatar

Brennan Ward Shadows-of-Fire

View GitHub Profile
(Time values are in microseconds)
FastSuite (Cache Size 100):
Seek Times for Recipe iron nugget : [108, 44, 47, 37, 72, 44, 22, 21, 21, 18]
Seek Times for Recipe sticks : [1287, 1, 1, 1, 1, 2, 2, 1, 1, 1]
Seek Times for Recipe crafting table : [151, 0, 0, 0, 0, 1, 0, 0, 0, 0]
Seek Times for Recipe acacia planks : [4831, 12, 10, 10, 8, 17, 8, 10, 4, 4]
Seek Times for Recipe failure : [657, 344, 333, 306, 277, 372, 219, 189, 182, 180]
Seek Times for Recipe gold nugget : [29, 24, 26, 19, 68, 88, 20, 12, 12, 11]
@-moz-document domain("githubusercontent.com"), domain("graphql-explorer.githubapp.com"), regexp("^https?://((blog|gist|guides|help|raw|resources|status|developer)\\.)?github\\.com/((?!generated_pages/preview).)*$") {
/*! Github Dark v1.20.84 (2018-11-19) */
/*! Repository: https://github.com/StylishThemes/GitHub-Dark */
/*! Userstyle: http://userstyles.org/styles/37035 */
/*! License: https://creativecommons.org/licenses/by-sa/4.0/ */
/* Override default browser styles */
button {
color: #b5b5b5 !important;
}
/* begin auto-generated rules - use tools/generate.js to generate them */
private static class ItemAdapter extends TypeAdapter<ItemStack> {
@Override
public void write(JsonWriter out, ItemStack s) throws IOException {
out.beginObject();
out.name("item").value(s.getItem().getRegistryName().toString());
out.name("meta").value(s.getItemDamage());
out.name("count").value(s.getCount());
if (s.hasTagCompound()) out.beginObject().name("nbt").value(s.getTagCompound().toString()).endObject();
out.endObject();
gold_ingot=minecraft:gold_ingot|0xfdf55f
iron_ingot=minecraft:iron_ingot|0xd8d8d8
diamond=minecraft:diamond|0xa1fbe8
emerald=minecraft:emerald|0x17dd62
sea_heart=minecraft:heart_of_the_sea|0x2180a1
lapis=minecraft:lapis_lazuli|0x345ec3
redstone=minecraft:redstone|0xaa0f01
[06:43:29] [modloading-worker-14/ERROR]: Caught exception during event FMLLoadCompleteEvent dispatch for modid world_blender
java.lang.NullPointerException: null
at net.telepathicgrunt.worldblender.the_blender.FeatureGrouping.isLaggyFeature(FeatureGrouping.java:144) ~[?:?]
at net.telepathicgrunt.worldblender.the_blender.PerformBiomeBlending.addBiomeFeatures(PerformBiomeBlending.java:217) ~[?:?]
at net.telepathicgrunt.worldblender.the_blender.PerformBiomeBlending.setupBiomes(PerformBiomeBlending.java:68) ~[?:?]
at net.telepathicgrunt.worldblender.CommonModBusEventHandler.latestCommonSetup(CommonModBusEventHandler.java:26) ~[?:?]
at net.minecraftforge.eventbus.ASMEventHandler_102_CommonModBusEventHandler_latestCommonSetup_FMLLoadCompleteEvent.invoke(.dynamic) ~[?:?]
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.0.0-milestone.1-service.jar:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.0.0-milestone.1-service.jar:?]
at net.min
Conversion: Infix -> Prefix
(a + b) -> + a b
((x + b) * (y - d)) -> * + x b - y d
(((a + b) / (x + y)) - r) -> - / + a b + x y r
Strategy: Parenthesis grouping, subgroup replacement.
Example (using case 3):
Split input into the following string subgroups, based on parenthesis. Parenthesis are stripped.
Input: (((a + b) / (x + y)) - r) -> ends up with 4 groups (number of open parenthesis).
> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.0.74_mapped_snapshot_20190829-1.14.3_at_0482be85dbf5320c258cf6fe0b5ffebf53c3cca3
> Task :eclipseClasspath
Error getting artifact: net.minecraftforge:forge:1.14.4-28.0.74_mapped_snapshot_20190829-1.14.3_at_0482be85dbf5320c258cf6fe0b5ffebf53c3cca3:null@jar from MinecraftUserRepo
java.lang.IllegalStateException: Could not download MCP Mappings: net.minecraft:mappings_snapshot:20190829-1.14.3@zip
at net.minecraftforge.gradle.userdev.MinecraftUserRepo.findMapping(MinecraftUserRepo.java:435)
at net.minecraftforge.gradle.userdev.MinecraftUserRepo.findRaw(MinecraftUserRepo.java:518)
at net.minecraftforge.gradle.userdev.MinecraftUserRepo.findFile(MinecraftUserRepo.java:394)
Plants
-Block Methods
--getPlantTypes() @Nullable Set<PlantType>, null type represents not a plant.
--canBePlanted(IBlockReader, BlockPos) boolean, Plant's authority on if it can be placed here. Equal authority with canPlantOn
--canHarvest(IBlockReader, BlockPos, @Nullable PlayerEntity) boolean, if the plant can be harvested
--harvest(IWorld, BlockPos, @Nullable PlayerEntity) List<ItemStack>, harvests the plant into a List<ItemStacK>. Updates the state in the world.
--placePlant(IWorld, BlockPos, @Nullable PlayerEntity, ItemStack) boolean, places the plant into the world. Returns true for success.
--getSeed() Item, returns the seed for this plant.
--getGrowthProgress(BlockState) float, returns [0, 1] for plant growth.
[11:49:52.317] [Client thread/DEBUG] [me.je.re.RecipeManager/]: Loading recipes: apotheosis:spawner_modification
[11:49:52.318] [Client thread/ERROR] [me.je.re.RecipeManager/]: Found a broken recipe: shadows.spawn.compat.SpawnerWrapper$SpawnerInverseWrapper@65a610f7
Outputs:
net.minecraft.item.ItemStack: [[1 air minecraft:air]]
Inputs:
net.minecraft.item.ItemStack: [[], [1 quartz minecraft:quartz]]
java.lang.IllegalArgumentException: ItemStack value must not be empty. 1 air minecraft:air
at mezz.jei.util.ErrorUtil.checkNotEmpty(ErrorUtil.java:172) ~[jei-1.14.4-+_mapped_snapshot_20190804-1.14.3.jar:6.0.0.10] {}
at mezz.jei.plugins.vanilla.ingredients.item.ItemStackHelper.getUniqueId(ItemStackHelper.java:69) ~[jei-1.14.4-+_mapped_snapshot_20190804-1.14.3.jar:6.0.0.10] {}
[28Jul2019 17:36:08.063] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Shadows_of_Fire, --version, 1.14.4-forge-28.0.22, --gameDir, C:\Users\Shadows\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Shadows\AppData\Roaming\.minecraft\assets, --assetIndex, 1.14, --uuid, 08b91900f0ee4745ba0f15d3cc933660, --accessToken, ????????, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 28.0.22, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20190719.225934]
[28Jul2019 17:36:08.066] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 3.1.0+58+1395384 starting: java version 1.8.0_51 by Oracle Corporation
[28Jul2019 17:36:08.077] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,testharness,fmlclient,fmlserver]
[28Jul2019 17:36:08.084] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services