Package org.geysermc.geyser.entity
Class EntityDataBehaviorRegistry
java.lang.Object
org.geysermc.geyser.entity.EntityDataBehaviorRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<?>> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @Nullable Toverride(@NonNull Entity entity, @NonNull org.geysermc.geyser.api.entity.data.GeyserEntityDataType<T> type) Reads only the active API override, ornullif none has been set.static <T> voidupdate(@NonNull Entity entity, @NonNull org.geysermc.geyser.api.entity.data.GeyserEntityDataType<T> type, @Nullable T value) static <T> @Nullable Tvalue(@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.
-
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, ornullif none has been set.
-