add gray cloth
parent
6cdd8c71eb
commit
42f4f16864
|
@ -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 GrayCloth extends Tile
|
||||
{
|
||||
protected GrayCloth(final int id) {
|
||||
super(id);
|
||||
this.tex = 78;
|
||||
//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;
|
||||
}
|
||||
}
|
|
@ -32,6 +32,7 @@ public class Tile
|
|||
public static final Tile lava;
|
||||
public static final Tile calmLava;
|
||||
public static final Tile WhiteCloth;
|
||||
public static final Tile GrayCloth;
|
||||
public int tex;
|
||||
public final int id;
|
||||
protected float xx0;
|
||||
|
@ -57,6 +58,7 @@ public class Tile
|
|||
lava = new LiquidTile(10, 2);
|
||||
calmLava = new CalmLiquidTile(11, 2);
|
||||
WhiteCloth = new WhiteCloth(12);
|
||||
GrayCloth = new GrayCloth(13);
|
||||
}
|
||||
|
||||
protected Tile(final int id) {
|
||||
|
|
Loading…
Reference in New Issue