Class EntityDataBehaviorRegistry

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

public final class EntityDataBehaviorRegistry extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Set<org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<?>>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> @Nullable T
    override(@NonNull Entity entity, @NonNull org.geysermc.geyser.api.entity.data.GeyserEntityDataType<T> type)
    Reads only the active API override, or null if none has been set.
    static <T> void
    update(@NonNull Entity entity, @NonNull org.geysermc.geyser.api.entity.data.GeyserEntityDataType<T> type, @Nullable T value)
     
    static <T> @Nullable T
    value(@NonNull Entity entity, @NonNull org.geysermc.geyser.api.entity.data.GeyserEntityDataType<T> type)
    Reads the value currently shown to the Bedrock client: the override if one is set, otherwise the base value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TRACKED_ENTITY_DATA

      public static final Set<org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<?>> TRACKED_ENTITY_DATA
  • Method Details

    • update

      public static <T> void update(@NonNull Entity entity, @NonNull org.geysermc.geyser.api.entity.data.GeyserEntityDataType<T> type, @Nullable T value)
    • value

      public static <T> @Nullable T value(@NonNull Entity entity, @NonNull org.geysermc.geyser.api.entity.data.GeyserEntityDataType<T> type)
      Reads the value currently shown to the Bedrock client: the override if one is set, otherwise the base value.
    • override

      public static <T> @Nullable T override(@NonNull Entity entity, @NonNull org.geysermc.geyser.api.entity.data.GeyserEntityDataType<T> type)
      Reads only the active API override, or null if none has been set.