Package com.mrbysco.lunar.api
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
ConstructorsConstructorDescriptionLunarEvent(net.minecraft.resources.ResourceLocation resourceLocation, int moonColor) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.mrbysco.lunar.api.ILunarEvent
applyEntityEffect, applyEntityEffect, applyPlayerEffect, applyPlayerEffect, applySpawnEffect, applySpawnEffect, canAppear, canSleep, dictatesMobSpawn, getSpawnResult, getTranslationKey, moonScale, moonTexture, removeEntityEffect, spawnWeight, stopEffects
-
Constructor Details
-
LunarEvent
public LunarEvent(net.minecraft.resources.ResourceLocation resourceLocation, int moonColor)
-
-
Method Details
-
getID
public net.minecraft.resources.ResourceLocation 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
-