This file contains 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
#!/bin/bash | |
git log --pretty=format:'%s' --abbrev-commit $1 | sort | uniq > bd-$1-sorted | |
git log --pretty=format:'%s' --abbrev-commit $2 | sort | uniq > bd-$2-sorted | |
echo "writing hashes" | |
git log --pretty=format:'%h %s' --abbrev-commit $1 > bd-hashes | |
echo "" >> bd-hashes | |
git log --pretty=format:'%h %s' --abbrev-commit $2 >> bd-hashes |
This file contains 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
#include <chrono> | |
#include <ctime> | |
#include <random> | |
#include <ratio> | |
#include <cmath> | |
#include <cinttypes> | |
#include "boost/random.hpp" | |
#include <x86intrin.h> |
This file contains 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 com.voxelgenesis.test.inject; | |
import com.voxelgenesis.injector.Inject; | |
import com.voxelgenesis.injector.Injector; | |
import com.voxelgenesis.test.TestTarget; | |
@Injector(TestTarget.class) | |
public class MixinTestTarget { | |
// This injection is replacing the value of the local assignment |
This file contains 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
fun main(args: Array<String>) { | |
val x = 10 | |
val y = 9 | |
if(x == 6) { | |
if(y == 6) { | |
println("a") | |
} else { | |
println("b") | |
} | |
} else { |
This file contains 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
fun main(args: Array<String>) { | |
val x = 10 | |
val y = 9 | |
if(x == 6) { | |
if(y == 6) { | |
println("a") | |
} else { | |
println("b") | |
} | |
} else { |
This file contains 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 net.minecraft.block.material; | |
public class Material { | |
public static final Material AIR = new MaterialTransparent(MapColor.AIR); | |
public static final Material GRASS = new Material(MapColor.GRASS); | |
public static final Material GROUND = new Material(MapColor.DIRT); | |
public static final Material WOOD = new Material(MapColor.WOOD).setBurning(); | |
public static final Material ROCK = new Material(MapColor.STONE).setRequiresTool(); | |
public static final Material IRON = new Material(MapColor.IRON).setRequiresTool(); |
This file contains 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
import java.util.List; | |
import java.util.Random; | |
import javax.annotation.Nullable; | |
import net.minecraft.block.material.EnumPushReaction; | |
import net.minecraft.block.material.MapColor; | |
import net.minecraft.block.material.Material; | |
import net.minecraft.block.properties.IProperty; | |
import net.minecraft.block.state.BlockStateContainer; | |
import net.minecraft.block.state.IBlockState; |
This file contains 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
Handles structures that are saved to disk. Certain structures | |
can take up large amounts of disk space for very large maps, | |
and the data for these structures is only needed while the | |
world around them is generating. Disabling saving of these structures | |
can save disk space and time during saves if your world is already | |
fully generated. Warning: disabling structure saving will break | |
the vanilla locate command. |
This file contains 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
private static enum CompareOps { | |
AND, | |
OR, | |
MID, | |
MID_OR | |
} | |
private static class ConditionResult { | |
public Condition condition; |
This file contains 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
/* | |
* This file is part of SpongeAPI, licensed under the MIT License (MIT). | |
* | |
* Copyright (c) SpongePowered <https://www.spongepowered.org> | |
* Copyright (c) contributors | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
NewerOlder