2015-11-02 17:45:11 -08:00
|
|
|
package WayofTime.bloodmagic.ritual.imperfect;
|
|
|
|
|
2017-08-14 20:53:42 -07:00
|
|
|
import WayofTime.bloodmagic.BloodMagic;
|
2015-11-02 17:45:11 -08:00
|
|
|
import WayofTime.bloodmagic.api.BlockStack;
|
|
|
|
import WayofTime.bloodmagic.api.ritual.imperfect.IImperfectRitualStone;
|
|
|
|
import WayofTime.bloodmagic.api.ritual.imperfect.ImperfectRitual;
|
2016-03-17 13:00:44 -07:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.init.Blocks;
|
2015-11-02 17:45:11 -08:00
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public class ImperfectRitualNight extends ImperfectRitual {
|
|
|
|
public ImperfectRitualNight() {
|
2017-08-14 20:53:42 -07:00
|
|
|
super("night", new BlockStack(Blocks.LAPIS_BLOCK), 100, true, "ritual." + BloodMagic.MODID + ".imperfect.night");
|
2015-11-02 17:45:11 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-08-15 21:30:48 -07:00
|
|
|
public boolean onActivate(IImperfectRitualStone imperfectRitualStone, EntityPlayer player) {
|
2015-11-02 17:45:11 -08:00
|
|
|
|
2016-01-31 15:48:49 -08:00
|
|
|
if (!imperfectRitualStone.getRitualWorld().isRemote)
|
|
|
|
imperfectRitualStone.getRitualWorld().setWorldTime((imperfectRitualStone.getRitualWorld().getWorldTime() / 24000) * 24000 + 13800);
|
2015-11-02 17:45:11 -08:00
|
|
|
|
2015-11-05 19:58:43 -08:00
|
|
|
return true;
|
2015-11-02 17:45:11 -08:00
|
|
|
}
|
|
|
|
}
|