Class Circumstance
java.lang.Object
me.deecaad.weaponmechanics.weapon.trigger.Circumstance
- All Implemented Interfaces:
me.deecaad.core.file.Serializer<Circumstance>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for serializerCircumstance(List<Circumstance.CircumstanceData> circumstances, me.deecaad.core.mechanics.MechanicManager denyMechanics) -
Method Summary
Modifier and TypeMethodDescriptionbooleandeny(EntityWrapper entityWrapper) If entity wrapper is null, this will always return trueserialize(me.deecaad.core.file.SerializeData data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.Serializer
canUsePathTo, getKeyword, getName, getParentKeywords, getWikiLink, letPassThrough, shouldSerialize, tryPathTo, useLater
-
Constructor Details
-
Circumstance
public Circumstance()Default constructor for serializer -
Circumstance
public Circumstance(List<Circumstance.CircumstanceData> circumstances, me.deecaad.core.mechanics.MechanicManager denyMechanics)
-
-
Method Details
-
deny
If entity wrapper is null, this will always return true- Parameters:
entityWrapper- the entity wrapper or null if not used- Returns:
- whether to deny
-
serialize
@NotNull public Circumstance serialize(@NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException - Specified by:
serializein interfaceme.deecaad.core.file.Serializer<Circumstance>- Throws:
me.deecaad.core.file.SerializerException
-