Skip to content

Instantly share code, notes, and snippets.

package net.minecraft.src;
import java.util.Random;
public class mod_Swaginite extends BaseMod
{
public static Item SwaginiteHelmet;
public static Item SwaginiteChest;
public static Item SwaginiteLeggings;
public static Item SwaginiteBoots;
private boolean isInFieldOfVision(vi entityPlayer, ia entity)
{
double d = par1Entity.posX - posX;
double d2 = par1Entity.posZ - posZ;
double d1;
if (par1Entity instanceof EntityLiving)
{
EntityLiving entityliving = (EntityLiving)par1Entity;
byte[] var5 = var4.getBiomeArray();
for (int var6 = 0; var6 < var5.length; ++var6)
{
var5[var6] = (byte)this.biomesForGeneration[var6].biomeID;
}
String s = Integer.toBinaryString(derp);
for (int index=0; index<s.length(); index++)
Booleansss[index] = s.charAt(index) == 1;
package net.minecraft.src;
import java.util.Random;
public class TreeGeneStore {
boolean Genes[] = new boolean[2];
Random rnd = new Random();
AetherTreeGeneStore()

Basic GUI

Saspiron's basic GUI will normally contain a series of buttons, and a background/image. To demonstrate those features, this GUI will render in-game model specified in the constructor. Starting with the class, we'll want to extend GuiScreen and declare what package we're in:

package net.minecraft.src;

public class GuiBasic extends GuiScreen {
    
}
import java.io.*;
public class MonsterData {
Static Monster[] monsters = {new Monster("Pikachu") ,new Monster("Charmander")};
public static void main(String args[]){
}
}
import java.util.Random;
public class TileLongGrass extends Tile {
public static final int CHANCE_OF_FINDING_MONSTER = 2;
@Override
public void stepOn(EntityPlayer entityPlayer, int x, int y) {
System.out.println("YOU DARE STAND ON LONG GRASS!!!!" );
--- BEGIN ERROR REPORT a44950d3 --------
Generated 11/12/12 12:05 PM
- Minecraft Version: 1.4.2
- Operating System: Windows 8 (x86) version 6.2
- Java Version: 1.7.0_09, Oracle Corporation
- Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
- Memory: 112634112 bytes (107 MB) / 239747072 bytes (228 MB) up to 1037959168 bytes (989 MB)
package org.test.testPlugin.material;
import org.spout.api.material.Material;
public class testItemMaterial extends Material {
public testItemMaterial(String name) {
super(name);
}