Package net.minecraft.client.network
Class DataQueryHandler
java.lang.Object
net.minecraft.client.network.DataQueryHandler
@Environment(CLIENT) public class DataQueryHandler extends Object
-
Field Summary
Fields Modifier and Type Field Description private Consumer<CompoundTag>callbackprivate intexpectedTransactionIdprivate ClientPlayNetworkHandlernetworkHandler -
Constructor Summary
Constructors Constructor Description DataQueryHandler(ClientPlayNetworkHandler networkHandler) -
Method Summary
Modifier and Type Method Description booleanhandleQueryResponse(int transactionId, CompoundTag tag)private intnextQuery(Consumer<CompoundTag> callback)voidqueryBlockNbt(BlockPos pos, Consumer<CompoundTag> callback)voidqueryEntityNbt(int entityNetworkId, Consumer<CompoundTag> callback)
-
Field Details
-
networkHandler
-
expectedTransactionId
private int expectedTransactionId -
callback
-
-
Constructor Details
-
DataQueryHandler
-
-
Method Details
-
handleQueryResponse
-
nextQuery
-
queryEntityNbt
-
queryBlockNbt
-