Class LeafParticleOptions
java.lang.Object
net.frozenblock.wilderwild.particle.options.LeafParticleOptions
- All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions
public class LeafParticleOptions
extends Object
implements net.minecraft.core.particles.ParticleOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<LeafParticleOptions> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, LeafParticleOptions> -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull LeafParticleOptionscreate(net.minecraft.core.particles.ParticleType<LeafParticleOptions> type, float quadSize, float gravityScale) static @NotNull LeafParticleOptionscreateFastFalling(net.minecraft.core.particles.ParticleType<LeafParticleOptions> type, float quadSize) floatnet.minecraft.resources.ResourceLocationfloat@NotNull net.minecraft.core.particles.ParticleType<?> getType()net.minecraft.world.phys.Vec3booleanboolean
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,LeafParticleOptions> STREAM_CODEC
-
-
Method Details
-
create
@NotNull public static @NotNull LeafParticleOptions create(net.minecraft.core.particles.ParticleType<LeafParticleOptions> type, float quadSize, float gravityScale) -
createFastFalling
@NotNull public static @NotNull LeafParticleOptions createFastFalling(net.minecraft.core.particles.ParticleType<LeafParticleOptions> type, float quadSize) -
getType
@NotNull public @NotNull net.minecraft.core.particles.ParticleType<?> getType()- Specified by:
getTypein interfacenet.minecraft.core.particles.ParticleOptions
-
getParticleId
public net.minecraft.resources.ResourceLocation getParticleId() -
getVelocity
public net.minecraft.world.phys.Vec3 getVelocity() -
getQuadSize
public float getQuadSize() -
getGravityScale
public float getGravityScale() -
isFastFalling
public boolean isFastFalling() -
shouldControlVelUponSpawn
public boolean shouldControlVelUponSpawn()
-