mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 15:03:03 +00:00
Move botaniaStateProps and all state enums into the api so others can use them to set our blockstates
This commit is contained in:
1 parent
4426f8904f
commit
0a7268fc98
12 files changed
+36
-40
No files matched your search
@@ -0,0 +1,38 @@
|
||||
package vazkii.botania.api.state;
|
||||
|
||||
import net.minecraft.block.properties.PropertyBool;
|
||||
import net.minecraft.block.properties.PropertyEnum;
|
||||
import net.minecraft.block.properties.PropertyInteger;
|
||||
import net.minecraft.item.EnumDyeColor;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import vazkii.botania.api.state.enums.AltGrassType;
|
||||
|
||||
/**
|
||||
* Holds all Botania block state properties. Use these to set botania blockstates
|
||||
*/
|
||||
public class BotaniaStateProps {
|
||||
|
||||
/** Common properties to all blocks to use **/
|
||||
|
||||
// The 16 Minecraft colors
|
||||
public static final PropertyEnum COLOR = PropertyEnum.create("color", EnumDyeColor.class);
|
||||
|
||||
// The four cardinal directions
|
||||
public static final PropertyEnum CARDINALS = PropertyEnum.create("facing", EnumFacing.class, EnumFacing.Plane.HORIZONTAL);
|
||||
|
||||
// All 6 directions
|
||||
public static final PropertyEnum FACING = PropertyEnum.create("facing", EnumFacing.class);
|
||||
|
||||
// Redstone power - boolean
|
||||
public static final PropertyBool POWERED = PropertyBool.create("powered");
|
||||
|
||||
// Redstone power - int
|
||||
public static final PropertyInteger POWER = PropertyInteger.create("power", 0, 15);
|
||||
|
||||
/** Properties for individual blocks **/
|
||||
|
||||
// BlockAltGrass
|
||||
public static final PropertyEnum ALTGRASS_VARIANT = PropertyEnum.create("variant", AltGrassType.class);
|
||||
|
||||
private BotaniaStateProps() {}
|
||||
}
|
||||
Reference in new issue
Block a user