<commit_before>package com.matt.forgehax.mods;

import com.matt.forgehax.util.Utils;
import com.matt.forgehax.util.draw.RenderUtils;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityMinecartChest;
import net.minecraft.tileentity.*;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

/**
 * Created on 9/4/2016 by fr1kin
 */
public class StorageESPMod extends ToggleMod {

    public StorageESPMod(String modName, boolean defaultValue, String description, int key) {
        super(modName, defaultValue, description, key);
    }

    @SubscribeEvent
    public void onRenderWorld(RenderWorldLastEvent event) {
        for(TileEntity tileEntity : getWorld().loadedTileEntityList) {
            BlockPos pos = tileEntity.getPos();
            if(tileEntity instanceof TileEntityChest || tileEntity instanceof TileEntityDispenser || tileEntity instanceof TileEntityShulkerBox) {
                RenderUtils.drawBox(
                        pos,
                        pos.add(1, 1, 1),
                        Utils.Colors.ORANGE,
                        2,
                        true
                );
            } else if(tileEntity instanceof TileEntityEnderChest) {
                RenderUtils.drawBox(
                        pos,
                        pos.add(1, 1, 1),
                        Utils.Colors.PURPLE,
                        2,
                        true
                );
            } else if(tileEntity instanceof TileEntityFurnace) {
                RenderUtils.drawBox(
                        pos,
                        pos.add(1, 1, 1),
                        Utils.Colors.GRAY,
                        2,
                        true
                );
            } else if(tileEntity instanceof TileEntityHopper) {
                RenderUtils.drawBox(
                        pos,
                        pos.add(1, 1, 1),
                        Utils.Colors.DARK_RED,
                        2,
                        true
                );
            }
        }
        for(Entity entity : getWorld().loadedEntityList) {
            if(entity instanceof EntityMinecartChest) {
                BlockPos pos = entity.getPosition();
                RenderUtils.drawBox(
                        pos,
                        pos.add(1, 1, 1),
                        Utils.Colors.ORANGE,
                        2,
                        true
                );
            }
        }
    }
}<commit_msg>Added item frames with shulkerboxes to storage esp<commit_after>package com.matt.forgehax.mods;

import com.matt.forgehax.util.Utils;
import com.matt.forgehax.util.draw.RenderUtils;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItemFrame;
import net.minecraft.entity.item.EntityMinecartChest;
import net.minecraft.item.Item;
import net.minecraft.item.ItemShulkerBox;
import net.minecraft.tileentity.*;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

/**
 * Created on 9/4/2016 by fr1kin
 */
public class StorageESPMod extends ToggleMod {

    public StorageESPMod(String modName, boolean defaultValue, String description, int key) {
        super(modName, defaultValue, description, key);
    }

    @SubscribeEvent
    public void onRenderWorld(RenderWorldLastEvent event) {
        for(TileEntity tileEntity : getWorld().loadedTileEntityList) {
            BlockPos pos = tileEntity.getPos();
            if(tileEntity instanceof TileEntityChest || tileEntity instanceof TileEntityDispenser || tileEntity instanceof TileEntityShulkerBox) {
                RenderUtils.drawBox(
                        pos,
                        pos.add(1, 1, 1),
                        Utils.Colors.ORANGE,
                        2,
                        true
                );
            } else if(tileEntity instanceof TileEntityEnderChest) {
                RenderUtils.drawBox(
                        pos,
                        pos.add(1, 1, 1),
                        Utils.Colors.PURPLE,
                        2,
                        true
                );
            } else if(tileEntity instanceof TileEntityFurnace) {
                RenderUtils.drawBox(
                        pos,
                        pos.add(1, 1, 1),
                        Utils.Colors.GRAY,
                        2,
                        true
                );
            } else if(tileEntity instanceof TileEntityHopper) {
                RenderUtils.drawBox(
                        pos,
                        pos.add(1, 1, 1),
                        Utils.Colors.DARK_RED,
                        2,
                        true
                );
            }
        }
        for(Entity entity : getWorld().loadedEntityList) {
            if(entity instanceof EntityMinecartChest) {
                BlockPos pos = entity.getPosition();
                RenderUtils.drawBox(
                        pos,
                        pos.add(1, 1, 1),
                        Utils.Colors.ORANGE,
                        2,
                        true
                );
            } else if(entity instanceof EntityItemFrame &&
                    ((EntityItemFrame) entity).getDisplayedItem().getItem() instanceof ItemShulkerBox) {
                BlockPos pos = entity.getPosition();
                RenderUtils.drawBox(
                        pos,
                        pos.add(1, -1, 1),
                        Utils.Colors.YELLOW,
                        2,
                        true
                );
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.07923451401712271, 'fraction_numerical': 0.010072183985227464, 'mean_word_length': 1.2986111111111112, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3223548', 'n_tokens_mistral': 1584, 'n_tokens_neox': 1463, 'n_words': 284}