Add ProjectE API
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package moze_intel.projecte.api.state;
|
||||
|
||||
import moze_intel.projecte.api.state.enums.EnumFuelType;
|
||||
import moze_intel.projecte.api.state.enums.EnumMatterType;
|
||||
import net.minecraft.block.BlockHorizontal;
|
||||
import net.minecraft.block.properties.IProperty;
|
||||
import net.minecraft.block.properties.PropertyEnum;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
|
||||
public final class PEStateProps {
|
||||
|
||||
public static final IProperty<EnumFacing> FACING = BlockHorizontal.FACING;
|
||||
public static final IProperty<EnumFuelType> FUEL_PROP = PropertyEnum.create("fueltype", EnumFuelType.class);
|
||||
public static final IProperty<EnumMatterType> TIER_PROP = PropertyEnum.create("tier", EnumMatterType.class);
|
||||
|
||||
private PEStateProps() {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package moze_intel.projecte.api.state.enums;
|
||||
|
||||
import net.minecraft.util.IStringSerializable;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public enum EnumFuelType implements IStringSerializable {
|
||||
ALCHEMICAL_COAL("alchemical_coal"),
|
||||
MOBIUS_FUEL("mobius_fuel"),
|
||||
AETERNALIS_FUEL("aeternalis_fuel");
|
||||
|
||||
private final String name;
|
||||
|
||||
EnumFuelType(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package moze_intel.projecte.api.state.enums;
|
||||
|
||||
import net.minecraft.util.IStringSerializable;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public enum EnumMatterType implements IStringSerializable {
|
||||
DARK_MATTER("dark_matter"),
|
||||
RED_MATTER("red_matter");
|
||||
|
||||
private final String name;
|
||||
|
||||
EnumMatterType(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user