add three blocks

master
PF94 2020-11-24 20:55:38 -05:00
parent d234493f31
commit 0c2ae24652
3 changed files with 105 additions and 0 deletions

View File

@ -0,0 +1,35 @@
//
// Decompiled by Procyon v0.5.36
//
package com.mojang.minecraft.level.tile;
import java.util.Random;
import com.mojang.minecraft.level.Level;
public class DiamondBlock extends Tile
{
protected DiamondBlock(final int id) {
super(id);
this.tex = 23;
//this.setTicking(true);
}
@Override
public void tick(final Level level, final int x, final int y, final int z, final Random random) {
final int below = level.getTile(x, y - 1, z);
if (!level.isLit(x, y, z) || (below != Tile.dirt.id && below != Tile.grass.id)) {
level.setTile(x, y, z, 0);
}
}
@Override
public boolean blocksLight() {
return false;
}
@Override
public boolean isSolid() {
return true;
}
}

View File

@ -0,0 +1,35 @@
//
// Decompiled by Procyon v0.5.36
//
package com.mojang.minecraft.level.tile;
import java.util.Random;
import com.mojang.minecraft.level.Level;
public class GoldBlock extends Tile
{
protected GoldBlock(final int id) {
super(id);
this.tex = 39;
//this.setTicking(true);
}
@Override
public void tick(final Level level, final int x, final int y, final int z, final Random random) {
final int below = level.getTile(x, y - 1, z);
if (!level.isLit(x, y, z) || (below != Tile.dirt.id && below != Tile.grass.id)) {
level.setTile(x, y, z, 0);
}
}
@Override
public boolean blocksLight() {
return false;
}
@Override
public boolean isSolid() {
return true;
}
}

View File

@ -0,0 +1,35 @@
//
// Decompiled by Procyon v0.5.36
//
package com.mojang.minecraft.level.tile;
import java.util.Random;
import com.mojang.minecraft.level.Level;
public class IronBlock extends Tile
{
protected IronBlock(final int id) {
super(id);
this.tex = 38;
//this.setTicking(true);
}
@Override
public void tick(final Level level, final int x, final int y, final int z, final Random random) {
final int below = level.getTile(x, y - 1, z);
if (!level.isLit(x, y, z) || (below != Tile.dirt.id && below != Tile.grass.id)) {
level.setTile(x, y, z, 0);
}
}
@Override
public boolean blocksLight() {
return false;
}
@Override
public boolean isSolid() {
return true;
}
}