Class RotationIndicatorParticleData
java.lang.Object
com.simibubi.create.content.kinetics.base.RotationIndicatorParticleData
- All Implemented Interfaces:
ICustomParticleData<RotationIndicatorParticleData>,ICustomParticleDataWithSprite<RotationIndicatorParticleData>,net.minecraft.core.particles.ParticleOptions
public class RotationIndicatorParticleData
extends Object
implements net.minecraft.core.particles.ParticleOptions, ICustomParticleDataWithSprite<RotationIndicatorParticleData>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RotationIndicatorParticleData> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, RotationIndicatorParticleData> -
Constructor Summary
ConstructorsConstructorDescriptionRotationIndicatorParticleData(int color, float speed, float radius1, float radius2, int lifeSpan, net.minecraft.core.Direction.Axis axis) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.Direction.AxisgetAxis()com.mojang.serialization.MapCodec<RotationIndicatorParticleData> getCodec(net.minecraft.core.particles.ParticleType<RotationIndicatorParticleData> type) net.minecraft.client.particle.ParticleEngine.SpriteParticleRegistration<RotationIndicatorParticleData> net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, RotationIndicatorParticleData> net.minecraft.core.particles.ParticleType<?> getType()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.simibubi.create.foundation.particle.ICustomParticleDataWithSprite
createType, getFactory, register
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,RotationIndicatorParticleData> STREAM_CODEC
-
-
Constructor Details
-
RotationIndicatorParticleData
public RotationIndicatorParticleData(int color, float speed, float radius1, float radius2, int lifeSpan, net.minecraft.core.Direction.Axis axis) -
RotationIndicatorParticleData
public RotationIndicatorParticleData()
-
-
Method Details
-
getType
public net.minecraft.core.particles.ParticleType<?> getType()- Specified by:
getTypein interfacenet.minecraft.core.particles.ParticleOptions
-
getAxis
public net.minecraft.core.Direction.Axis getAxis() -
getStreamCodec
public net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,RotationIndicatorParticleData> getStreamCodec()- Specified by:
getStreamCodecin interfaceICustomParticleData<RotationIndicatorParticleData>
-
getCodec
public com.mojang.serialization.MapCodec<RotationIndicatorParticleData> getCodec(net.minecraft.core.particles.ParticleType<RotationIndicatorParticleData> type) - Specified by:
getCodecin interfaceICustomParticleData<RotationIndicatorParticleData>
-
getMetaFactory
public net.minecraft.client.particle.ParticleEngine.SpriteParticleRegistration<RotationIndicatorParticleData> getMetaFactory()- Specified by:
getMetaFactoryin interfaceICustomParticleDataWithSprite<RotationIndicatorParticleData>
-