This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
generated from MeteorDevelopment/meteor-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Showing
3 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
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
51 changes: 51 additions & 0 deletions
51
src/main/java/nekiplay/meteorplus/features/modules/render/holograms/HologramDataListed.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,51 @@ | ||
package nekiplay.meteorplus.features.modules.render.holograms; | ||
|
||
import meteordevelopment.meteorclient.utils.render.color.Color; | ||
import meteordevelopment.meteorclient.utils.world.Dimension; | ||
import net.minecraft.util.math.BlockPos; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class HologramDataListed { | ||
public double x; | ||
public double y; | ||
public double z; | ||
public String text; | ||
public String world; | ||
public String dimension; | ||
public Color color; | ||
public double max_render_distance = 16; | ||
public int item_id = 0; | ||
public double scale = 1; | ||
public int item_scale = 2; | ||
public boolean distanceScaling = false; | ||
|
||
public ArrayList<HologramData> other_holograms = new ArrayList<HologramData>(); | ||
|
||
public HologramDataListed() { | ||
|
||
} | ||
public HologramDataListed(double x, double y, double z, String text, String world, String dimension, Color color, double max_render_distance) { | ||
this.x = x; | ||
this.y = y; | ||
this.z = z; | ||
this.color = color; | ||
|
||
this.text = text; | ||
this.world = world; | ||
this.dimension = dimension; | ||
this.max_render_distance = max_render_distance; | ||
} | ||
|
||
public HologramDataListed(BlockPos pos, String text, String world, Dimension dimension, Color color, double max_render_distance) { | ||
this.x = pos.getX(); | ||
this.y = pos.getY(); | ||
this.z = pos.getZ(); | ||
this.color = color; | ||
|
||
this.text = text; | ||
this.world = world; | ||
this.dimension = dimension.name(); | ||
this.max_render_distance = max_render_distance; | ||
} | ||
} |
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