Skip to content

Instantly share code, notes, and snippets.

@Elix-x
Elix-x / gitwebpages.sh
Last active December 2, 2016 20:38
Travis - Maven artifacts deployment to github pages
#!/bin/bash
USER="<USERNAME>"
NAME="<NAME OF PROJECT>"
GROUP="<GROUP (WITH SLASHES '/' !!!)>"
git config --global user.email "$USER@users.noreply.github.com"
git config --global user.name "Travis-Maven"
git clone https://$USER:$GITACCESSTOKEN@github.com/$USER/$USER.github.io.git
@Elix-x
Elix-x / AICChangesWrapper.java
Created April 9, 2016 09:16
AIC 2.0 Public Biomes API
package code.elix_x.coremods.antiidconflict.api;
import net.minecraft.world.chunk.Chunk;
/**
* This class wraps all methods that were changed (name or signature) in vanilla by AIC.
* Methods here should be used instead of vanilla's, when AIC is loaded, or otherwise your calls to vanilla methods will be redirected and voided to not cause any crashes.
* <br>
* <strong>This class is rewritten with ASM at runtime. So methods will do what they are supposed to do.</strong>
* <br>
@Elix-x
Elix-x / WCSWChunkProvider.java
Last active December 18, 2016 14:20
Understanding chunk providers mechanics.
package code.elix_x.mods.wcsw.world.chunk;
import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.CAVE;
import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.MINESHAFT;
import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.RAVINE;
import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.SCATTERED_FEATURE;
import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.STRONGHOLD;
import static net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.VILLAGE;
import static net.minecraftforge.event.terraingen.PopulateChunkEvent.Populate.EventType.ANIMALS;
import static net.minecraftforge.event.terraingen.PopulateChunkEvent.Populate.EventType.DUNGEON;