Record Class TagEventFilter.ID
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.server.tag.TagEventFilter.ID
- All Implemented Interfaces:
TagEventFilter
- Enclosing interface:
TagEventFilter
public static record TagEventFilter.ID(net.minecraft.resources.ResourceLocation id)
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
ConstructorsConstructorDescriptionID(net.minecraft.resources.ResourceLocation id) Creates an instance of aIDrecord class. -
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.net.minecraft.resources.ResourceLocationid()Returns the value of theidrecord component.booleantestElementId(net.minecraft.resources.ResourceLocation id) 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
remove, testTagOrElementLocation, unwrap
-
Constructor Details
-
ID
public ID(net.minecraft.resources.ResourceLocation id) Creates an instance of aIDrecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
testElementId
public boolean testElementId(net.minecraft.resources.ResourceLocation id) - Specified by:
testElementIdin interfaceTagEventFilter
-
add
- Specified by:
addin 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). -
id
public net.minecraft.resources.ResourceLocation id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-