80 if($this->entityId ===
null){
81 $this->entityId = Entity::nextRuntimeId();
83 $p[] = RemoveActorPacket::create($this->entityId);
86 if(!$this->invisible){
87 $name = $this->title . ($this->text !==
"" ?
"\n" . $this->text :
"");
90 1 << EntityMetadataFlags::NO_AI
93 EntityMetadataProperties::FLAGS =>
new LongMetadataProperty($actorFlags),
94 EntityMetadataProperties::SCALE =>
new FloatMetadataProperty(0.01),
95 EntityMetadataProperties::BOUNDING_BOX_WIDTH =>
new FloatMetadataProperty(0.0),
96 EntityMetadataProperties::BOUNDING_BOX_HEIGHT =>
new FloatMetadataProperty(0.0),
97 EntityMetadataProperties::NAMETAG =>
new StringMetadataProperty($name),
98 EntityMetadataProperties::VARIANT =>
new IntMetadataProperty(TypeConverter::getInstance()->getBlockTranslator()->internalIdToNetworkId(VanillaBlocks::AIR()->getStateId())),
99 EntityMetadataProperties::ALWAYS_SHOW_NAMETAG =>
new ByteMetadataProperty(1),
101 $p[] = AddActorPacket::create(
104 EntityIds::FALLING_BLOCK,
113 new PropertySyncData([], []),