-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac39f93
commit b62054b
Showing
3 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
fabric/src/main/java/ziyue/tjmetro/mapping/DustParticleEffect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package ziyue.tjmetro.mapping; | ||
|
||
/** | ||
* @author ZiYueCommentary | ||
* @since 1.0.0-beta-2 | ||
*/ | ||
|
||
public class DustParticleEffect | ||
{ | ||
#if MC_VERSION >= "11904" | ||
public static final net.minecraft.particle.DustParticleEffect BLUE = new net.minecraft.particle.DustParticleEffect(net.minecraft.util.math.Vec3d.unpackRgb(3336430).toVector3f(), 1.0F); // 50, 232, 238 | ||
#elif MC_VERSION >= "11701" | ||
public static final net.minecraft.particle.DustParticleEffect BLUE = new net.minecraft.particle.DustParticleEffect(new net.minecraft.util.math.Vec3f(net.minecraft.util.math.Vec3d.unpackRgb(3336430)), 1.0F); | ||
#else | ||
public static final net.minecraft.particle.DustParticleEffect BLUE = new net.minecraft.particle.DustParticleEffect(0.196F, 0.909F, 0.933F, 1.0F); | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
forge/src/main/java/ziyue/tjmetro/mapping/DustParticleEffect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package ziyue.tjmetro.mapping; | ||
|
||
/** | ||
* @author ZiYueCommentary | ||
* @since 1.0.0-beta-2 | ||
*/ | ||
|
||
public class DustParticleEffect | ||
{ | ||
#if MC_VERSION >= "11904" | ||
public static final net.minecraft.core.particles.DustParticleOptions BLUE = new net.minecraft.core.particles.DustParticleOptions(net.minecraft.world.phys.Vec3.fromRGB24(3336430).toVector3f(), 1.0F); // 50, 232, 238 | ||
#elif MC_VERSION >= "11701" | ||
public static final net.minecraft.core.particles.DustParticleOptions BLUE = new net.minecraft.core.particles.DustParticleOptions(new com.mojang.math.Vector3f(net.minecraft.world.phys.Vec3.fromRGB24(3336430)), 1.0F); | ||
#else | ||
public static final net.minecraft.particles.IParticleData BLUE = new net.minecraft.particles.RedstoneParticleData(0.196F, 0.909F, 0.933F, 1.0F); | ||
#endif | ||
} |