Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Entity class

Comments in 'Plugin Development' started by SuperChipsLP, Apr 28, 2014.

  1. SuperChipsLP
    Offline

    SuperChipsLP Active Member Plugin Developer

    Joined:
    Sep 15, 2013
    Posts:
    204
    Plugins:
    5
    Minecraft User:
    Redmol
    So, just a few minutes ago, I found this in the EntityAPI.php:
    PHP:
    public function add(Level $level$class$type 0$data = array()){
            
    $eid $this->eCnt++;
            
    $this->entities[$eid] = new Entity($level$eid$class$type$data);
            
    $this->server->handle("entity.add"$this->entities[$eid]);
            return 
    $this->entities[$eid];
        }
    Now, I was wondering what $class an entity could be.
    When I could spawn chest- and sign entities for the missing ones (My other question)
    that question would be answered, but, does this work? What is a chests, and what is a signs entity class?
    How do I get them, when there's no entity on these tiles? Or, are tiles (like Chests or Signs) even entites?

    Thanks!
  2. BlinkSun
    Offline

    BlinkSun Active Member Plugin Developer

    Joined:
    Mar 26, 2014
    Posts:
    128
    Plugins:
    4
    Minecraft User:
    BlinkSun
    Chest and sign are Tile, not Entity !
    Spurs_Man321 likes this.

Share This Page

Advertisement