Record Class TagEventFilter.Tag
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.server.tag.TagEventFilter.Tag
- All Implemented Interfaces:
TagEventFilter
- Enclosing interface:
TagEventFilter
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.latvian.mods.kubejs.server.tag.TagEventFilter
TagEventFilter.Empty, TagEventFilter.ID, TagEventFilter.Namespace, TagEventFilter.Or, TagEventFilter.RegEx, TagEventFilter.Tag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintadd(TagWrapper wrapper) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intremove(TagWrapper wrapper) tag()Returns the value of thetagrecord component.booleantestElementId(net.minecraft.resources.ResourceLocation id) booleantestTagOrElementLocation(net.minecraft.util.ExtraCodecs.TagOrElementLocation element) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.server.tag.TagEventFilter
unwrap
-
Constructor Details
-
Tag
Creates an instance of aTagrecord class.- Parameters:
tag- the value for thetagrecord component
-
-
Method Details
-
testElementId
public boolean testElementId(net.minecraft.resources.ResourceLocation id) - Specified by:
testElementIdin interfaceTagEventFilter
-
testTagOrElementLocation
public boolean testTagOrElementLocation(net.minecraft.util.ExtraCodecs.TagOrElementLocation element) - Specified by:
testTagOrElementLocationin interfaceTagEventFilter
-
add
- Specified by:
addin interfaceTagEventFilter
-
remove
- Specified by:
removein interfaceTagEventFilter
-
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
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-