Record Class EntityRegistry.CopiedBase
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.registry.EntityRegistry.CopiedBase
- All Implemented Interfaces:
EntityRegistry.Base
- Enclosing class:
EntityRegistry
public static record EntityRegistry.CopiedBase(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> entity)
extends Record
implements EntityRegistry.Base
-
Constructor Summary
ConstructorsConstructorDescriptionCopiedBase(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> entity) Creates an instance of aCopiedBaserecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CopiedBase
public CopiedBase(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> entity) Creates an instance of aCopiedBaserecord class.- Parameters:
entity- the value for theentityrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
entity
public net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> entity()Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-