Record Class BarricadeParticleOptions
java.lang.Object
java.lang.Record
net.modgarden.barricade.particle.BarricadeParticleOptions
- All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions
public record BarricadeParticleOptions(BlockedDirections blockedDirections, net.minecraft.resources.Identifier icon, Optional<net.minecraft.core.BlockPos> origin)
extends Record
implements net.minecraft.core.particles.ParticleOptions
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBarricadeParticleOptions(BlockedDirections blockedDirections, @Nullable net.minecraft.resources.Identifier icon, Optional<net.minecraft.core.BlockPos> origin) Creates an instance of aBarricadeParticleOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockedDirectionsrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull net.minecraft.core.particles.ParticleType<?> getType()final inthashCode()Returns a hash code value for this object.net.minecraft.resources.Identifiericon()Returns the value of theiconrecord component.Optional<net.minecraft.core.BlockPos> origin()Returns the value of theoriginrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BarricadeParticleOptions
public BarricadeParticleOptions(BlockedDirections blockedDirections, @Nullable @Nullable net.minecraft.resources.Identifier icon, Optional<net.minecraft.core.BlockPos> origin) Creates an instance of aBarricadeParticleOptionsrecord class.- Parameters:
blockedDirections- the value for theblockedDirectionsrecord componenticon- the value for theiconrecord componentorigin- the value for theoriginrecord component
-
-
Method Details
-
getType
@NotNull public @NotNull net.minecraft.core.particles.ParticleType<?> getType()- Specified by:
getTypein interfacenet.minecraft.core.particles.ParticleOptions
-
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). -
blockedDirections
Returns the value of theblockedDirectionsrecord component.- Returns:
- the value of the
blockedDirectionsrecord component
-
icon
public net.minecraft.resources.Identifier icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-