File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,16 +152,22 @@ public function buildDefinitionsFromData() : array{
152152 }
153153
154154 /**
155- * @return BiomeDefinitionData[]
156- * @phpstan-return list<BiomeDefinitionData>
155+ * @return BiomeDefinitionData[]|null
156+ * @phpstan-return list<BiomeDefinitionData>|null
157157 */
158- public function getDefinitionData () : array { return $ this ->definitionData ; }
158+ public function getDefinitionData () : ? array { return $ this ->definitionData ; }
159159
160160 /**
161- * @return string[]
162- * @phpstan-return list<string>
161+ * @return string[]|null
162+ * @phpstan-return list<string>|null
163163 */
164- public function getStrings () : array { return $ this ->strings ; }
164+ public function getStrings () : ?array { return $ this ->strings ; }
165+
166+ /**
167+ * @return CacheableNbt<CompoundTag>|null
168+ * @phpstan-return CacheableNbt<CompoundTag>|null
169+ */
170+ public function getLegacyDefinitions () : ?CacheableNbt { return $ this ->legacyDefinitions ; }
165171
166172 protected function decodePayload (ByteBufferReader $ in , int $ protocolId ) : void {
167173 if ($ protocolId < ProtocolInfo::PROTOCOL_1_21_80 ){
Original file line number Diff line number Diff line change 1717use pmmp \encoding \ByteBufferReader ;
1818use pmmp \encoding \ByteBufferWriter ;
1919use pmmp \encoding \VarInt ;
20+ use pocketmine \math \Vector3 ;
21+ use pocketmine \network \mcpe \protocol \serializer \CommonTypes ;
2022
2123class UpdateClientInputLocksPacket extends DataPacket implements ClientboundPacket{
2224 public const NETWORK_ID = ProtocolInfo::UPDATE_CLIENT_INPUT_LOCKS_PACKET ;
2325
2426 private int $ flags ;
27+ private Vector3 $ position ;
2528
2629 /**
2730 * @generate-create-func
2831 */
29- public static function create (int $ flags ) : self {
32+ public static function create (int $ flags, Vector3 $ position ) : self {
3033 $ result = new self ;
3134 $ result ->flags = $ flags ;
35+ $ result ->position = $ position ;
3236 return $ result ;
3337 }
3438
You can’t perform that action at this time.
0 commit comments