Cleanup
This commit is contained in:
parent
42f8754912
commit
a51470210e
19 changed files with 0 additions and 880 deletions
|
@ -1,50 +0,0 @@
|
|||
package ru.betterend.particle;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
import net.minecraft.core.Registry;
|
||||
import net.minecraft.core.particles.ParticleOptions;
|
||||
import net.minecraft.core.particles.ParticleType;
|
||||
import net.minecraft.network.FriendlyByteBuf;
|
||||
import ru.betterend.registry.EndParticles;
|
||||
|
||||
public class GlowingSphereParticleEffect implements ParticleOptions {
|
||||
private final float red;
|
||||
private final float green;
|
||||
private final float blue;
|
||||
|
||||
public GlowingSphereParticleEffect(float red, float green, float blue) {
|
||||
this.red = red;
|
||||
this.green = green;
|
||||
this.blue = blue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ParticleType<?> getType() {
|
||||
return EndParticles.GLOWING_SPHERE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToNetwork(FriendlyByteBuf buf) {
|
||||
buf.writeFloat(this.red);
|
||||
buf.writeFloat(this.green);
|
||||
buf.writeFloat(this.blue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String writeToString() {
|
||||
return String.format(Locale.ROOT, "%s %.2f %.2f %.2f", Registry.PARTICLE_TYPE.getKey(this.getType()), this.red, this.green, this.blue);
|
||||
}
|
||||
|
||||
public float getRed() {
|
||||
return this.red;
|
||||
}
|
||||
|
||||
public float getGreen() {
|
||||
return this.green;
|
||||
}
|
||||
|
||||
public float getBlue() {
|
||||
return this.blue;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue