
net.minecraft.server.BlockRedSandstone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package net.minecraft.server;
public class BlockRedSandstone extends Block {
public static final BlockStateEnum TYPE = BlockStateEnum.of("type", EnumRedSandstoneVariant.class);
public BlockRedSandstone() {
super(Material.STONE, BlockSand.EnumSandVariant.RED_SAND.c());
this.j(this.blockStateList.getBlockData().set(BlockRedSandstone.TYPE, EnumRedSandstoneVariant.DEFAULT));
this.a(CreativeModeTab.b);
}
public int getDropData(IBlockData iblockdata) {
return iblockdata.get(BlockRedSandstone.TYPE).a();
}
public IBlockData fromLegacyData(int i) {
return this.getBlockData().set(BlockRedSandstone.TYPE, EnumRedSandstoneVariant.a(i));
}
public int toLegacyData(IBlockData iblockdata) {
return iblockdata.get(BlockRedSandstone.TYPE).a();
}
protected BlockStateList getStateList() {
return new BlockStateList(this, BlockRedSandstone.TYPE);
}
public enum EnumRedSandstoneVariant implements INamable {
DEFAULT(0, "red_sandstone", "default"), CHISELED(1, "chiseled_red_sandstone", "chiseled"), SMOOTH(2, "smooth_red_sandstone", "smooth");
private static final EnumRedSandstoneVariant[] d = new EnumRedSandstoneVariant[values().length];
static {
EnumRedSandstoneVariant[] ablockredsandstone_enumredsandstonevariant = values();
int i = ablockredsandstone_enumredsandstonevariant.length;
for (EnumRedSandstoneVariant blockredsandstone_enumredsandstonevariant : ablockredsandstone_enumredsandstonevariant) {
EnumRedSandstoneVariant.d[blockredsandstone_enumredsandstonevariant.a()] = blockredsandstone_enumredsandstonevariant;
}
}
private final int e;
private final String f;
private final String g;
EnumRedSandstoneVariant(int i, String s, String s1) {
this.e = i;
this.f = s;
this.g = s1;
}
public static EnumRedSandstoneVariant a(int i) {
if (i < 0 || i >= EnumRedSandstoneVariant.d.length) {
i = 0;
}
return EnumRedSandstoneVariant.d[i];
}
public int a() {
return this.e;
}
public String toString() {
return this.f;
}
public String getName() {
return this.f;
}
public String c() {
return this.g;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy