mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 09:16:20 +02:00
Add droppers to ChestEspHack
This commit is contained in:
parent
c6d7fd4719
commit
6738979631
@ -17,13 +17,7 @@ import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
|
||||
import net.minecraft.block.entity.BarrelBlockEntity;
|
||||
import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.block.entity.ChestBlockEntity;
|
||||
import net.minecraft.block.entity.EnderChestBlockEntity;
|
||||
import net.minecraft.block.entity.HopperBlockEntity;
|
||||
import net.minecraft.block.entity.ShulkerBoxBlockEntity;
|
||||
import net.minecraft.block.entity.TrappedChestBlockEntity;
|
||||
import net.minecraft.block.entity.*;
|
||||
import net.minecraft.client.render.GameRenderer;
|
||||
import net.minecraft.client.util.math.MatrixStack;
|
||||
import net.minecraft.entity.Entity;
|
||||
@ -82,13 +76,19 @@ public class ChestEspHack extends Hack implements UpdateListener,
|
||||
"Hoppers will be highlighted in this color.", Color.BLACK),
|
||||
new CheckboxSetting("Include hoppers", false));
|
||||
|
||||
private final ChestEspBlockGroup droppers = new ChestEspBlockGroup(
|
||||
new ColorSetting("Dropper color",
|
||||
"Droppers will be highlighted in this color.", Color.BLACK),
|
||||
new CheckboxSetting("Include droppers", false));
|
||||
|
||||
private final ChestEspEntityGroup minecarts = new ChestEspEntityGroup(
|
||||
new ColorSetting("Cart color",
|
||||
"Minecarts will be highlighted in this color.", Color.GREEN),
|
||||
new CheckboxSetting("Include carts", true));
|
||||
|
||||
private final List<ChestEspGroup> groups = Arrays.asList(basicChests,
|
||||
trapChests, enderChests, barrels, shulkerBoxes, hoppers, minecarts);
|
||||
private final List<ChestEspGroup> groups =
|
||||
Arrays.asList(basicChests, trapChests, enderChests, barrels,
|
||||
shulkerBoxes, hoppers, droppers, minecarts);
|
||||
|
||||
private final List<ChestEspEntityGroup> entityGroups =
|
||||
Arrays.asList(minecarts);
|
||||
@ -146,6 +146,8 @@ public class ChestEspHack extends Hack implements UpdateListener,
|
||||
barrels.add(blockEntity);
|
||||
else if(blockEntity instanceof HopperBlockEntity)
|
||||
hoppers.add(blockEntity);
|
||||
else if(blockEntity instanceof DropperBlockEntity)
|
||||
droppers.add(blockEntity);
|
||||
|
||||
for(Entity entity : MC.world.getEntities())
|
||||
if(entity instanceof ChestMinecartEntity)
|
||||
|
Loading…
Reference in New Issue
Block a user