This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package daomephsta.precisioncrafting.common | |
import java.util.function.Consumer | |
import daomephsta.precisioncrafting.common.precisiontable.BlockEntityPrecisionTable | |
import daomephsta.precisioncrafting.common.precisiontable.PrecisionTableContainer | |
import net.minecraft.container.Container | |
import net.minecraft.container.ContainerProvider | |
import net.minecraft.entity.player.PlayerEntity | |
import net.minecraft.entity.player.PlayerInventory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Gravitic Stabiliser", | |
"icon": "polar:falling_block_stabiliser", | |
"category": "mining", | |
"advancement": "polar:red/root_red", | |
"pages": | |
[ | |
{ | |
"type": "research", | |
"research_advancement": "polar:red/falling_block_stabiliser", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Adds loot functions equivalent to the damage, stacksize and NBT of the | |
* input stack to the passed in array, if loot functions of the same type | |
* are not present. */ | |
public static LootFunction[] addStackFunctions(IItemStack iStack, LootFunction[] existingFunctions) | |
{ | |
ItemStack stack = CraftTweakerMC.getItemStack(iStack); | |
boolean sizeFuncExists = false, damageFuncExists = false, nbtFuncExists = false; | |
for (LootFunction lootFunction : existingFunctions) | |
{ | |
if (lootFunction instanceof SetCount) sizeFuncExists = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PREINITIALIZATION][CLIENT][INFO] Current loaders after merging: [[preinit]] | |
[PREINITIALIZATION][CLIENT][INFO] Loading scripts for loader with names [preinit] | |
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIENT]: Skipping file {[0:crafttweaker]: test.zs} as we are currently loading with a different loader | |
[PREINITIALIZATION][CLIENT][INFO] Completed script loading in: 3ms | |
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Building registry | |
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Successfully built item registry | |
[INITIALIZATION][CLIENT][INFO] Current loaders after merging: [[preinit], [recipeevent | crafttweaker]] | |
[INITIALIZATION][CLIENT][INFO] Loading scripts for loader with names [crafttweaker | recipeevent] | |
[INITIALIZATION][CLIENT][INFO] [crafttweaker | SIDE_CLIENT]: Loading Script: {[0:crafttweaker]: test.zs} | |
[INITIALIZATION][CLIENT][ERROR] test.zs:8 > No such member in loottweaker.vanilla.loot.ModConditions: hasStage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package daomephsta.umbra.bitmanipulation; | |
import java.util.BitSet; | |
import java.util.stream.IntStream; | |
import com.google.common.math.IntMath; | |
class BitEncoderDecoderFixedBitCount implements IBitEncoderDecoder | |
{ | |
private final BitSet bits; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package leviathan143.asmlist; | |
import java.lang.reflect.Field; | |
import java.util.HashMap; | |
import java.util.Map; | |
@SuppressWarnings("unchecked") | |
public abstract class ASMArray<E> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For those who want the bleeding edge | |
buildscript { | |
repositories { | |
jcenter() | |
maven { | |
name = "forge" | |
url = "http://files.minecraftforge.net/maven" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package leviathan143.armourmodelreplacer.common; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Method; | |
import javax.annotation.Nonnull; | |
import net.minecraft.launchwrapper.Launch; | |
import net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper; | |
import net.minecraftforge.fml.relauncher.ReflectionHelper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Benchmark Mode Cnt Score Error Units | |
MicroBenchmark.testEmptyMethod avgt 5 0.910 ± 0.403 ns/op | |
MicroBenchmark.testEmptyMethod:·gc.alloc.rate avgt 5 ≈ 0 MB/sec | |
MicroBenchmark.testEmptyMethod:·gc.alloc.rate.norm avgt 5 ≈ 0 B/op | |
MicroBenchmark.testEmptyMethod:·gc.churn.PS_Eden_Space avgt 5 0.400 ± 3.444 MB/sec | |
MicroBenchmark.testEmptyMethod:·gc.churn.PS_Eden_Space.norm avgt 5 ≈ 10⁻³ B/op | |
MicroBenchmark.testEmptyMethod:·gc.count avgt 5 1.000 counts | |
MicroBenchmark.testEmptyMethod:·gc.time avgt 5 5.000 ms | |
MicroBenchmark.testEmptyMethod:·stack avgt NaN --- | |
MicroBenchmark.testNastyAPI avgt 5 14.195 ± |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using OpenTK; | |
using OpenTK.Graphics; | |
using OpenTK.Graphics.OpenGL; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Tangerine; | |
namespace OpenGL_Testbed.Lighting |