Record Class BulletEntity.BulletEntityBuilder
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.entity.projectile.BulletEntity.BulletEntityBuilder
- All Implemented Interfaces:
HitEffectUtils
- Enclosing class:
BulletEntity
public static record BulletEntity.BulletEntityBuilder(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.projectile.arrow.Arrow> entityType, net.minecraft.world.item.Item referenceItem)
extends Record
implements HitEffectUtils
-
Nested Class Summary
Nested classes/interfaces inherited from interface HitEffectUtils
HitEffectUtils.HitEffect -
Constructor Summary
ConstructorsConstructorDescriptionBulletEntityBuilder(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.projectile.arrow.Arrow> entityType, net.minecraft.world.item.Item referenceItem) Creates an instance of aBulletEntityBuilderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuild(net.minecraft.world.level.Level level) net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.projectile.arrow.Arrow> Returns the value of theentityTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.item.ItemReturns the value of thereferenceItemrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface HitEffectUtils
addMoltenEffects, addTeslaEffects, addVentusEffects
-
Constructor Details
-
BulletEntityBuilder
public BulletEntityBuilder(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.projectile.arrow.Arrow> entityType, net.minecraft.world.item.Item referenceItem) Creates an instance of aBulletEntityBuilderrecord class.- Parameters:
entityType- the value for theentityTyperecord componentreferenceItem- the value for thereferenceItemrecord component
-
-
Method Details
-
build
-
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). -
entityType
public net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.projectile.arrow.Arrow> entityType()Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
referenceItem
public net.minecraft.world.item.Item referenceItem()Returns the value of thereferenceItemrecord component.- Returns:
- the value of the
referenceItemrecord component
-