Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //start
- public synchronized void drawOutlines() {
- if(Configs.Generic.OUTLINE_SHOWN.getBooleanValue()) {
- Tessellator tessellator = Tessellator.getInstance();
- BufferBuilder buffer = tessellator.getBuffer();
- buffer.begin(GL11.GL_LINES, DefaultVertexFormats.POSITION_COLOR);
- for(PlayereditSet editsForPlayer : _playerEdits.values()) {
- editsForPlayer.drawOutlines(buffer);
- }
- tessellator.draw();
- }
- }
- //PlayerEditSet
- public synchronized void drawOutlines(BufferBuilder buffer) {
- if(isVisible()) {
- if(Configs.Generic.OUTLINE_SHOWN.getBooleanValue()) {
- for(BlockEdit edit : _edits) {
- edit.drawOutline(buffer);
- }
- }
- }
- }
- //BlockEdit
- public void drawOutline(BufferBuilder buffer) {
- IBakedModel model;
- IBlockState state = (IRegistry.BLOCK.get(new ResourceLocation(block.getName()))).getDefaultState();
- model = this.blockModelShapes.getModel(state);
- RenderUtils.drawBlockModelQuadOverlayBatched(model, state, new BlockPos(x, y, z), block.getColor(), 0, buffer);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement