Class GeyserEntityDataManager

java.lang.Object
org.geysermc.geyser.entity.GeyserEntityDataManager

public final class GeyserEntityDataManager extends Object
A wrapper for temporarily storing entity metadata that will be sent to Bedrock.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    <T> T
    get(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData)
    Intended for testing purposes only
    boolean
     
    <T> void
    put(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData, T value)
     
     
    <T> void
    updateOverride(@NonNull org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData, @Nullable T value)
     
    <T> @Nullable T
    value(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GeyserEntityDataManager

      public GeyserEntityDataManager()
  • Method Details

    • put

      public <T> void put(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData, T value)
    • updateOverride

      public <T> void updateOverride(@NonNull org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData, @Nullable T value)
    • value

      public <T> @Nullable T value(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData)
    • 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

      public String toString()
      Overrides:
      toString in class Object