Unicopia/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesBlock.java

27 lines
850 B
Java
Raw Normal View History

2022-09-23 23:25:00 +02:00
package com.minelittlepony.unicopia.block;
2023-04-30 11:46:33 +02:00
import com.minelittlepony.unicopia.server.world.ZapAppleStageStore;
2022-09-23 23:25:00 +02:00
import net.minecraft.block.*;
import net.minecraft.state.StateManager;
import net.minecraft.state.property.*;
2022-09-23 23:25:00 +02:00
public class ZapAppleLeavesBlock extends BaseZapAppleLeavesBlock {
2022-09-23 23:25:00 +02:00
public static final EnumProperty<ZapAppleStageStore.Stage> STAGE = EnumProperty.of("stage", ZapAppleStageStore.Stage.class);
ZapAppleLeavesBlock() {
setDefaultState(getDefaultState().with(STAGE, ZapAppleStageStore.Stage.HIBERNATING));
}
@Override
protected ZapAppleStageStore.Stage getStage(BlockState state) {
return state.get(STAGE);
2022-09-23 23:25:00 +02:00
}
@Override
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
super.appendProperties(builder);
builder.add(STAGE);
2022-09-23 23:25:00 +02:00
}
}