net.minecraft.server.BlockSmoothBrick Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chest-server Show documentation
Show all versions of chest-server Show documentation
A spigot fork to kotlin structure and news.
The newest version!
package net.minecraft.server;
public class BlockSmoothBrick extends Block {
public static final BlockStateEnum VARIANT = BlockStateEnum.of("variant", EnumStonebrickType.class);
public static final int b = EnumStonebrickType.DEFAULT.a();
public static final int N = EnumStonebrickType.MOSSY.a();
public static final int O = EnumStonebrickType.CRACKED.a();
public static final int P = EnumStonebrickType.CHISELED.a();
public BlockSmoothBrick() {
super(Material.STONE);
this.j(this.blockStateList.getBlockData().set(BlockSmoothBrick.VARIANT, EnumStonebrickType.DEFAULT));
this.a(CreativeModeTab.b);
}
public int getDropData(IBlockData iblockdata) {
return iblockdata.get(BlockSmoothBrick.VARIANT).a();
}
public IBlockData fromLegacyData(int i) {
return this.getBlockData().set(BlockSmoothBrick.VARIANT, EnumStonebrickType.a(i));
}
public int toLegacyData(IBlockData iblockdata) {
return iblockdata.get(BlockSmoothBrick.VARIANT).a();
}
protected BlockStateList getStateList() {
return new BlockStateList(this, BlockSmoothBrick.VARIANT);
}
public enum EnumStonebrickType implements INamable {
DEFAULT(0, "stonebrick", "default"), MOSSY(1, "mossy_stonebrick", "mossy"), CRACKED(2, "cracked_stonebrick", "cracked"), CHISELED(3, "chiseled_stonebrick", "chiseled");
private static final EnumStonebrickType[] e = new EnumStonebrickType[values().length];
static {
EnumStonebrickType[] ablocksmoothbrick_enumstonebricktype = values();
int i = ablocksmoothbrick_enumstonebricktype.length;
for (int j = 0; j < i; ++j) {
EnumStonebrickType blocksmoothbrick_enumstonebricktype = ablocksmoothbrick_enumstonebricktype[j];
EnumStonebrickType.e[blocksmoothbrick_enumstonebricktype.a()] = blocksmoothbrick_enumstonebricktype;
}
}
private final int f;
private final String g;
private final String h;
EnumStonebrickType(int i, String s, String s1) {
this.f = i;
this.g = s;
this.h = s1;
}
public static EnumStonebrickType a(int i) {
if (i < 0 || i >= EnumStonebrickType.e.length) {
i = 0;
}
return EnumStonebrickType.e[i];
}
public int a() {
return this.f;
}
public String toString() {
return this.g;
}
public String getName() {
return this.g;
}
public String c() {
return this.h;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy