Record Class PreTagWrapper.RemoveAction
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.server.tag.PreTagWrapper.RemoveAction
- All Implemented Interfaces:
Consumer<TagKubeEvent>
- Enclosing class:
PreTagWrapper
public static record PreTagWrapper.RemoveAction(net.minecraft.resources.ResourceLocation tag, Object[] filters)
extends Record
implements Consumer<TagKubeEvent>
-
Constructor Summary
ConstructorsConstructorDescriptionRemoveAction(net.minecraft.resources.ResourceLocation tag, Object[] filters) Creates an instance of aRemoveActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal booleanIndicates whether some other object is "equal to" this one.Object[]filters()Returns the value of thefiltersrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationtag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RemoveAction
Creates an instance of aRemoveActionrecord class.- Parameters:
tag- the value for thetagrecord componentfilters- the value for thefiltersrecord component
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceConsumer<TagKubeEvent>
-
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). -
tag
public net.minecraft.resources.ResourceLocation tag()Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
filters
Returns the value of thefiltersrecord component.- Returns:
- the value of the
filtersrecord component
-