Class LunarEvent
java.lang.Object
com.mrbysco.lunar.api.LunarEvent
- All Implemented Interfaces:
ILunarEvent
- Direct Known Subclasses:
BadOmenMoonEvent, BigMoonEvent, BloodMoonEvent, CrimsonMoonEvent, EclipseMoonEvent, HeroMoonEvent, MinerMoonEvent, RegularMoonEvent, TinyMoonEvent, WhiteMoonEvent
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ILunarEvent
applyEntityEffect, applyEntityEffect, applyPlayerEffect, applyPlayerEffect, applySpawnEffect, applySpawnEffect, canAppear, canSleep, dictatesMobSpawn, getAttributePairs, getSpawnResult, getTranslationKey, moonScale, moonTexture, removeEntityEffect, removePlayerEffect, spawnWeight
-
Constructor Details
-
LunarEvent
public LunarEvent(net.minecraft.resources.Identifier identifier, int moonColor)
-
-
Method Details
-
getID
public net.minecraft.resources.Identifier getID()Description copied from interface:ILunarEventGet the resource location of the lunar event.- Specified by:
getIDin interfaceILunarEvent- Returns:
- the resource location of the lunar event
-
moonColor
public int moonColor()Description copied from interface:ILunarEventThe color of the moon during the lunar event.- Specified by:
moonColorin interfaceILunarEvent- Returns:
- the color of the moon
-
toString
-