add MORE CLOTH

master
PF94 2020-11-23 23:45:31 -05:00
parent 766b7808e0
commit d8116f762e
5 changed files with 112 additions and 1 deletions

View File

@ -410,7 +410,7 @@ public class Minecraft implements Runnable, LevelLoaderListener
}
if (Keyboard.getEventKey() == Keyboard.KEY_PERIOD) {
if (this.paintTexture != 13)
if (this.paintTexture != 16)
this.paintTexture += 1;
}

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 ClothBlack extends Tile
{
protected ClothBlack(final int id) {
super(id);
this.tex = 77;
//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 ClothHotPink extends Tile
{
protected ClothHotPink(final int id) {
super(id);
this.tex = 75;
//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 ClothMagenta extends Tile
{
protected ClothMagenta(final int id) {
super(id);
this.tex = 76;
//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

@ -33,6 +33,9 @@ public class Tile
public static final Tile calmLava;
public static final Tile WhiteCloth;
public static final Tile GrayCloth;
public static final Tile BlackCloth;
public static final Tile HotCloth;
public static final Tile MageCloth;
public int tex;
public final int id;
protected float xx0;
@ -59,6 +62,9 @@ public class Tile
calmLava = new CalmLiquidTile(11, 2);
WhiteCloth = new ClothWhite(12);
GrayCloth = new ClothGray(13);
BlackCloth = new ClothBlack(14);
HotCloth = new ClothHotPink(15);
MageCloth = new ClothMagenta(16);
}
protected Tile(final int id) {