Class GeyserDirtyMetadata

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

public final class GeyserDirtyMetadata extends Object
A write-only 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.
    boolean
     
    <T> void
    put​(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> entityData, T value)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object