Package org.geysermc.geyser.entity
Class GeyserDirtyMetadata
java.lang.Object
org.geysermc.geyser.entity.GeyserDirtyMetadata
A wrapper for temporarily storing entity metadata that will be sent to Bedrock.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataMap map) Applies the contents of the dirty metadata into the input and clears the contents of our map.<T> Tget(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData) Intended for testing purposes onlyboolean<T> voidput(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData, T value) toString()
-
Constructor Details
-
GeyserDirtyMetadata
public GeyserDirtyMetadata()
-
-
Method Details
-
put
public <T> void put(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData, T value) -
apply
public void apply(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataMap map) Applies the contents of the dirty metadata into the input and clears the contents of our map. -
hasEntries
public boolean hasEntries() -
get
public <T> T get(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData) Intended for testing purposes only -
toString
-