diff --git a/src/com/mojang/minecraft/level/tile/ClothGreen.java b/src/com/mojang/minecraft/level/tile/ClothGreen.java new file mode 100644 index 0000000..4c54047 --- /dev/null +++ b/src/com/mojang/minecraft/level/tile/ClothGreen.java @@ -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 ClothGreen extends Tile +{ + protected ClothGreen(final int id) { + super(id); + this.tex = 69; + //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; + } +} diff --git a/src/com/mojang/minecraft/level/tile/ClothLime.java b/src/com/mojang/minecraft/level/tile/ClothLime.java new file mode 100644 index 0000000..791e88f --- /dev/null +++ b/src/com/mojang/minecraft/level/tile/ClothLime.java @@ -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 ClothLime extends Tile +{ + protected ClothLime(final int id) { + super(id); + this.tex = 68; + //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; + } +} diff --git a/src/com/mojang/minecraft/level/tile/ClothTeal.java b/src/com/mojang/minecraft/level/tile/ClothTeal.java new file mode 100644 index 0000000..f3ad9f2 --- /dev/null +++ b/src/com/mojang/minecraft/level/tile/ClothTeal.java @@ -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 ClothTeal extends Tile +{ + protected ClothTeal(final int id) { + super(id); + this.tex = 68; + //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; + } +} diff --git a/src/com/mojang/minecraft/level/tile/ClothYellow.java b/src/com/mojang/minecraft/level/tile/ClothYellow.java new file mode 100644 index 0000000..67d8ff8 --- /dev/null +++ b/src/com/mojang/minecraft/level/tile/ClothYellow.java @@ -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 ClothYellow extends Tile +{ + protected ClothYellow(final int id) { + super(id); + this.tex = 67; + //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; + } +}