Package net.minecraft.client.util
Class NBTQueryManager
- java.lang.Object
-
- net.minecraft.client.util.NBTQueryManager
-
public class NBTQueryManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Consumer<CompoundNBT>
callback
private ClientPlayNetHandler
connection
private int
transactionId
-
Constructor Summary
Constructors Constructor Description NBTQueryManager(ClientPlayNetHandler p_i49773_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handleResponse(int p_211548_1_, CompoundNBT p_211548_2_)
void
queryBlockEntityTag(BlockPos p_211547_1_, java.util.function.Consumer<CompoundNBT> p_211547_2_)
void
queryEntityTag(int p_211549_1_, java.util.function.Consumer<CompoundNBT> p_211549_2_)
private int
startTransaction(java.util.function.Consumer<CompoundNBT> p_211546_1_)
-
-
-
Field Detail
-
connection
private final ClientPlayNetHandler connection
-
transactionId
private int transactionId
-
callback
@Nullable private java.util.function.Consumer<CompoundNBT> callback
-
-
Constructor Detail
-
NBTQueryManager
public NBTQueryManager(ClientPlayNetHandler p_i49773_1_)
-
-
Method Detail
-
handleResponse
public boolean handleResponse(int p_211548_1_, @Nullable CompoundNBT p_211548_2_)
-
startTransaction
private int startTransaction(java.util.function.Consumer<CompoundNBT> p_211546_1_)
-
queryEntityTag
public void queryEntityTag(int p_211549_1_, java.util.function.Consumer<CompoundNBT> p_211549_2_)
-
queryBlockEntityTag
public void queryBlockEntityTag(BlockPos p_211547_1_, java.util.function.Consumer<CompoundNBT> p_211547_2_)
-
-