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
function vec2() constructor | |
{ | |
#region Initialize Vector | |
__IS_VEC_3 = false; | |
#region Setup | |
/// Set available parameters | |
var paramArray = array_create(2,0); |
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
void GenerateNoise(int width, int height, float scale, int octaves, int positionX, int positionY) | |
{ | |
for (int y = positionY; y < positionY + height; y++) | |
{ | |
for (int x = positionX; x < positionX + width; x++) | |
{ | |
float sampleX = (float)x / width * scale; | |
float sampleY = (float)y / height * scale; | |
float noise = 0.0f; |
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
public class FloatCell | |
{ | |
public bool walkable = true; | |
public float x, y; | |
public int hCost, gCost, fCost; | |
public FloatCell previous; | |
public FloatCell(float x,float y) | |
{ | |
this.x = x; |
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
public class NavigationGrid | |
{ | |
public int width, height; | |
public Cell[,] cells; | |
public NavigationGrid(int width, int height) | |
{ | |
this.width = width; | |
this.height = height; | |
cells = new Cell[width, height]; |
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
let request = new XMLHttpRequest(); | |
request.responseType = 'text'; | |
document.onload = function () { | |
if (request.status === 200 && request.readyState === XMLHttpRequest.DONE) { | |
console.log(request.responseText) | |
} | |
else console.log(request); | |
}; | |
request.open('POST', 'http://localhost:4700', true); | |
request.send('param'); |
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.fabricmc.fabric.api.entity; | |
import net.minecraft.entity.Entity; | |
import net.minecraft.entity.EntityType; | |
import net.minecraft.entity.SpawnRestriction; | |
import net.minecraft.world.Heightmap; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Objects; |
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
deobfMcSRG{ | |
setFailOnAtError(false) | |
setInJar('lib/Thaumcraft-1.12.2-6.1.BETA26.jar') | |
setOutJar('lib/TC-1.jar') | |
} | |
decompileMc{ | |
setInJar('lib/TC-1.jar') | |
setOutJar('lib/TC-2.jar') | |
} |