Record Class EngineEvents.Reloaded
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.event.EngineEvents.Reloaded
- Record Components:
accepted- whether the new snapshot is live; if not, the previous one stays andreportsays why
- Enclosing class:
EngineEvents
public static record EngineEvents.Reloaded(@NotNull RegistryType<?> registry, boolean accepted, @NotNull ValidationReport report)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionReloaded(@NotNull RegistryType<?> registry, boolean accepted, @NotNull ValidationReport report) Creates an instance of aReloadedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns the value of theacceptedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull RegistryType<?> registry()Returns the value of theregistryrecord component.@NotNull ValidationReportreport()Returns the value of thereportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Reloaded
public Reloaded(@NotNull @NotNull RegistryType<?> registry, boolean accepted, @NotNull @NotNull ValidationReport report) Creates an instance of aReloadedrecord class.- Parameters:
registry- the value for theregistryrecord componentaccepted- the value for theacceptedrecord componentreport- the value for thereportrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
registry
Returns the value of theregistryrecord component.- Returns:
- the value of the
registryrecord component
-
accepted
-
report
Returns the value of thereportrecord component.- Returns:
- the value of the
reportrecord component
-