I have done: PHP: $this->particle = new FloatingTextParticle(new Vector3($x, $y, $z), " ", "");$p->getLevel()->addParticle($this->particle);// ...............$this->particle->setInvisible(true);$p->getLevel()->addParticle($this->particle);
@PEMapModder, that is exactly what I am asking . And @Gamecrafter, you know better that I mean FloatingTextParticle
Just don't pick on those tiny things and start flame wars, OK? You understand what he means, and FTP can mean many things other than FileTransferProtocol. @Legoboy0215 so you don't even know what you are trying to do? Before you post a question, please make sure you know what you are trying to do.
I am trying to remove a FTP (*Lazy me*) from a bunch of them in a world. For example, I have 20 FTPs in a world and I want to delete the one that has a specific vector.
PHP: public static function blockHash($x, $y, $z){ return PHP_INT_SIZE === 8 ? (($x & 0xFFFFFFF) << 35) | (($y & 0x7f) << 28) | ($z & 0xFFFFFFF) : $x . ":" . $y .":". $z;} What does this do? Hash the block?
Just shut up and do something constructive, OK? It returns a unique identifier that represents an XYZ match (i.e. a Vector3, although you aren't passing that object). For 64 bit systems, it returns an integer that combines the coords. For 32 bit systems, it returns a string that combines the coords. A notable advantage is that you can get the coords back from the hash. It basically gives a much better performance on 64 bit systems when you try to store values with coords as the key.