yes
parent
23ad1558dd
commit
fe9f90d61a
|
@ -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 BlueGuy extends Tile
|
||||
{
|
||||
protected BlueGuy(final int id) {
|
||||
super(id);
|
||||
this.tex = 81;
|
||||
//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;
|
||||
}
|
||||
}
|
|
@ -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 DarkMud extends Tile
|
||||
{
|
||||
protected DarkMud(final int id) {
|
||||
super(id);
|
||||
this.tex = 96;
|
||||
//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;
|
||||
}
|
||||
}
|
|
@ -47,6 +47,8 @@ public class Tile
|
|||
public static final Tile OrangeCloth;
|
||||
public static final Tile RedCloth;
|
||||
public static final Tile Bob;
|
||||
public static final Tile BlueGuy;
|
||||
public static final Tile BlackMud;
|
||||
public int tex;
|
||||
public final int id;
|
||||
protected float xx0;
|
||||
|
@ -87,6 +89,8 @@ public class Tile
|
|||
OrangeCloth = new ClothOrange(25);
|
||||
RedCloth = new ClothRed(26);
|
||||
Bob = new BobFur(27);
|
||||
BlueGuy = new BlueGuy(28);
|
||||
BlackMud = new BlackMud(29)
|
||||
}
|
||||
|
||||
protected Tile(final int id) {
|
||||
|
|
Loading…
Reference in New Issue