Record Class ModRemovalorder
java.lang.Object
java.lang.Record
com.minecolonies.core.datalistener.util.ModRemovalorder
- Record Components:
modId- the given mod id.
- All Implemented Interfaces:
RemovalOrder,Predicate<net.minecraft.resources.ResourceLocation>
Removal order for removing all datapack entries from an entire mod namespace.
-
Constructor Summary
ConstructorsConstructorDescriptionModRemovalorder(String modId) Creates an instance of aModRemovalorderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modId()Returns the value of themodIdrecord component.booleantest(net.minecraft.resources.ResourceLocation resourceLocation) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModRemovalorder
Creates an instance of aModRemovalorderrecord class.- Parameters:
modId- the value for themodIdrecord component
-
-
Method Details
-
test
public boolean test(net.minecraft.resources.ResourceLocation resourceLocation) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
modId
Returns the value of themodIdrecord component.- Returns:
- the value of the
modIdrecord component
-