mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-24 22:14:45 +00:00
Start API cleanup
This commit is contained in:
1 parent
76fa4cba29
commit
8d54c9a8cb
28 files changed
+81
-129
No files matched your search
@@ -9,12 +9,10 @@
|
||||
package vazkii.botania.api.state;
|
||||
|
||||
import com.google.common.base.Predicates;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.item.DyeColor;
|
||||
import net.minecraft.state.BooleanProperty;
|
||||
import net.minecraft.state.EnumProperty;
|
||||
import net.minecraft.util.Direction;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraftforge.client.model.data.ModelProperty;
|
||||
import vazkii.botania.api.item.IFloatingFlower;
|
||||
import vazkii.botania.api.state.enums.AlfPortalState;
|
||||
@@ -25,34 +23,16 @@ import vazkii.botania.api.state.enums.CratePattern;
|
||||
*/
|
||||
public final class BotaniaStateProps {
|
||||
|
||||
/** Unlisted properties **/
|
||||
|
||||
// The property for floating flower island type
|
||||
public static final ModelProperty<IFloatingFlower> FLOATING_DATA = new ModelProperty<>();
|
||||
|
||||
// The property for platform held blockstate
|
||||
public static final ModelProperty<BlockState> HELD_STATE = new ModelProperty<>();
|
||||
|
||||
// The property for platform world pos
|
||||
public static final ModelProperty<BlockPos> HELD_POS = new ModelProperty<>();
|
||||
|
||||
/** Common properties to all blocks to use **/
|
||||
|
||||
// The 16 Minecraft colors
|
||||
public static final EnumProperty<DyeColor> COLOR = EnumProperty.create("color", DyeColor.class);
|
||||
|
||||
// The four cardinal directions
|
||||
public static final EnumProperty<Direction> CARDINALS = EnumProperty.create("facing", Direction.class, Direction.Plane.HORIZONTAL);
|
||||
|
||||
// All 6 directions
|
||||
public static final EnumProperty<Direction> FACING = EnumProperty.create("facing", Direction.class);
|
||||
|
||||
// Redstone power - boolean
|
||||
// Also for any other simple boolean "on/off" state
|
||||
public static final BooleanProperty POWERED = BooleanProperty.create("powered");
|
||||
|
||||
/** Properties for individual blocks **/
|
||||
|
||||
// BlockAlfPortal
|
||||
public static final EnumProperty<AlfPortalState> ALFPORTAL_STATE = EnumProperty.create("state", AlfPortalState.class);
|
||||
|
||||
|
||||
Reference in new issue
Block a user