Git Product home page Git Product logo

chestplate's People

Contributors

ylt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

asaayers pips tntup

chestplate's Issues

Add Hopper Sorting

2013-12-26_08 08 46

A hopper with a sign attached would cause that hopper to only pick up things that are on the list.

Performance issue

Barely a bug, but is an issue that has always existed since first version - but has been worsened since that rewrite that made it modular.

Minecraft simulates pickups every server tick, if it's over a plate, this is where the problem is.. Bukkit itself dispatches an entity-interact event, which our plugin cancels the majority of the time, this happens for EVERY pickup that happens to be over a plate, even the same one..

This means that the plugin can lag the server unnecessarily if there's a lot of activity.

The solution that I'd personally like to implement is to use the interact event just to insert the triggered plate into a list. At this point, we can validate the surrounding blocks to verify that it's valid, THIS reduces the check to the whole chain of events, rather than every individual one.

This list can then be iterated through, on a timer - for each plate: check if it's pressed, if not: remove, else: read the data from the surrounding blocks for that plate (i.e. if it should go into a chest, or be sorted), iterate through pickups above that plate and apply that action.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.