Record Class TagEventFilter.Or
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.server.tag.TagEventFilter.Or
- All Implemented Interfaces:
TagEventFilter
- Enclosing interface:
TagEventFilter
public static record TagEventFilter.Or(List<TagEventFilter> filters)
extends Record
implements 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.filters()Returns the value of thefiltersrecord component.final inthashCode()Returns a hash code value for this object.intremove(TagWrapper wrapper) booleantestElementId(net.minecraft.resources.ResourceLocation resourceLocation) booleantestTagOrElementLocation(net.minecraft.util.ExtraCodecs.TagOrElementLocation element) final StringtoString()Returns a string representation of this record class.unwrap()
-
Constructor Details
-
Or
Creates an instance of aOrrecord class.- Parameters:
filters- the value for thefiltersrecord component
-
-
Method Details
-
testElementId
public boolean testElementId(net.minecraft.resources.ResourceLocation resourceLocation) - Specified by:
testElementIdin interfaceTagEventFilter
-
testTagOrElementLocation
public boolean testTagOrElementLocation(net.minecraft.util.ExtraCodecs.TagOrElementLocation element) - Specified by:
testTagOrElementLocationin interfaceTagEventFilter
-
unwrap
- Specified by:
unwrapin 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). -
filters
Returns the value of thefiltersrecord component.- Returns:
- the value of the
filtersrecord component
-