Java Code Examples for net.minecraft.entity.Entity#setGlowing()
The following examples show how to use
net.minecraft.entity.Entity#setGlowing() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ESP.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Override public void onDisable() { super.onDisable(); for (Entity e: mc.world.getEntities()) { if (e != mc.player) { if (e.isGlowing()) e.setGlowing(false); } } }
Example 2
Source File: ESP.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Subscribe public void onTick(EventTick event) { for (Entity e: mc.world.getEntities()) { if (e instanceof PlayerEntity && e != mc.player && getSettings().get(0).toToggle().state) { EntityUtils.setGlowing(e, Formatting.RED, "players"); } else if (e instanceof Monster && getSettings().get(1).toToggle().state) { EntityUtils.setGlowing(e, Formatting.DARK_BLUE, "mobs"); } else if (EntityUtils.isAnimal(e) && getSettings().get(2).toToggle().state) { EntityUtils.setGlowing(e, Formatting.GREEN, "passive"); } else if (e instanceof ItemEntity && getSettings().get(3).toToggle().state) { EntityUtils.setGlowing(e, Formatting.GOLD, "items"); } else if (e instanceof EnderCrystalEntity && getSettings().get(4).toToggle().state) { EntityUtils.setGlowing(e, Formatting.LIGHT_PURPLE, "crystals"); } else if ((e instanceof BoatEntity || e instanceof AbstractMinecartEntity) && getSettings().get(5).toToggle().state) { EntityUtils.setGlowing(e, Formatting.GRAY, "vehicles"); } else { e.setGlowing(false); } } }
Example 3
Source File: EntityUtils.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
public static void setGlowing(Entity entity, Formatting color, String teamName) { Team team = mc.world.getScoreboard().getTeamNames().contains(teamName) ? mc.world.getScoreboard().getTeam(teamName) : mc.world.getScoreboard().addTeam(teamName); mc.world.getScoreboard().addPlayerToTeam( entity instanceof PlayerEntity ? entity.getEntityName() : entity.getUuidAsString(), team); mc.world.getScoreboard().getTeam(teamName).setColor(color); entity.setGlowing(true); }
Example 4
Source File: ESP.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
public void onDisable() { for (Entity e: EntityUtils.getLoadedEntities()) { if (e != mc.player) { if (e.isGlowing()) e.setGlowing(false); } } }
Example 5
Source File: EntityUtils.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
public static void setGlowing(Entity entity, TextFormatting color, String teamName) { ScorePlayerTeam team = mc.world.getScoreboard().getTeamNames().contains(teamName) ? mc.world.getScoreboard().getTeam(teamName) : mc.world.getScoreboard().createTeam(teamName); mc.world.getScoreboard().addPlayerToTeam(entity.getScoreboardName(), team); mc.world.getScoreboard().getTeam(teamName).setColor(color); entity.setGlowing(true); }
Example 6
Source File: ESP.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Override public void onDisable() { super.onDisable(); for (Entity e: mc.world.getEntities()) { if (e != mc.player) { if (e.isGlowing()) e.setGlowing(false); } } }
Example 7
Source File: ESP.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Subscribe public void onTick(EventTick event) { for (Entity e: mc.world.getEntities()) { if (e instanceof PlayerEntity && e != mc.player && getSettings().get(0).toToggle().state) { EntityUtils.setGlowing(e, Formatting.RED, "players"); } else if (e instanceof Monster && getSettings().get(1).toToggle().state) { EntityUtils.setGlowing(e, Formatting.DARK_BLUE, "mobs"); } else if (EntityUtils.isAnimal(e) && getSettings().get(2).toToggle().state) { EntityUtils.setGlowing(e, Formatting.GREEN, "passive"); } else if (e instanceof ItemEntity && getSettings().get(3).toToggle().state) { EntityUtils.setGlowing(e, Formatting.GOLD, "items"); } else if (e instanceof EndCrystalEntity && getSettings().get(4).toToggle().state) { EntityUtils.setGlowing(e, Formatting.LIGHT_PURPLE, "crystals"); } else if ((e instanceof BoatEntity || e instanceof AbstractMinecartEntity) && getSettings().get(5).toToggle().state) { EntityUtils.setGlowing(e, Formatting.GRAY, "vehicles"); } else { e.setGlowing(false); } } }
Example 8
Source File: EntityUtils.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
public static void setGlowing(Entity entity, Formatting color, String teamName) { Team team = mc.world.getScoreboard().getTeamNames().contains(teamName) ? mc.world.getScoreboard().getTeam(teamName) : mc.world.getScoreboard().addTeam(teamName); mc.world.getScoreboard().addPlayerToTeam( entity instanceof PlayerEntity ? entity.getEntityName() : entity.getUuidAsString(), team); mc.world.getScoreboard().getTeam(teamName).setColor(color); entity.setGlowing(true); }
Example 9
Source File: ESP.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Override public void onDisable() { super.onDisable(); for (Entity e: mc.world.getEntities()) { if (e != mc.player) { if (e.isGlowing()) e.setGlowing(false); } } }
Example 10
Source File: ESP.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
@Subscribe public void onTick(EventTick event) { for (Entity e: mc.world.getEntities()) { if (e instanceof PlayerEntity && e != mc.player && getSettings().get(0).toToggle().state) { EntityUtils.setGlowing(e, Formatting.RED, "players"); } else if (e instanceof Monster && getSettings().get(1).toToggle().state) { EntityUtils.setGlowing(e, Formatting.DARK_BLUE, "mobs"); } else if (EntityUtils.isAnimal(e) && getSettings().get(2).toToggle().state) { EntityUtils.setGlowing(e, Formatting.GREEN, "passive"); } else if (e instanceof ItemEntity && getSettings().get(3).toToggle().state) { EntityUtils.setGlowing(e, Formatting.GOLD, "items"); } else if (e instanceof EnderCrystalEntity && getSettings().get(4).toToggle().state) { EntityUtils.setGlowing(e, Formatting.LIGHT_PURPLE, "crystals"); } else if ((e instanceof BoatEntity || e instanceof AbstractMinecartEntity) && getSettings().get(5).toToggle().state) { EntityUtils.setGlowing(e, Formatting.GRAY, "vehicles"); } else { e.setGlowing(false); } } }
Example 11
Source File: EntityUtils.java From bleachhack-1.14 with GNU General Public License v3.0 | 5 votes |
public static void setGlowing(Entity entity, Formatting color, String teamName) { Team team = mc.world.getScoreboard().getTeamNames().contains(teamName) ? mc.world.getScoreboard().getTeam(teamName) : mc.world.getScoreboard().addTeam(teamName); mc.world.getScoreboard().addPlayerToTeam( entity instanceof PlayerEntity ? entity.getEntityName() : entity.getUuidAsString(), team); mc.world.getScoreboard().getTeam(teamName).setColor(color); entity.setGlowing(true); }