Class EntityDebugSubscriptionRegistry
java.lang.Object
net.fabricmc.fabric.api.debug.v1.EntityDebugSubscriptionRegistry
A server-side registry for debug subscriptions specific
to entities or properties of entities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T, E extends net.minecraft.world.entity.Entity>
voidregister(net.minecraft.util.debug.DebugSubscription<T> debugSubscription, Predicate<net.minecraft.world.entity.Entity> shouldSubscribe, DebugValueFactory<E, T> valueFactory) static <T, E extends net.minecraft.world.entity.Entity>
voidregister(net.minecraft.util.debug.DebugSubscription<T> debugSubscription, Predicate<net.minecraft.world.entity.Entity> shouldSubscribe, DebugValueFactory<E, T> valueFactory, boolean isEnabledFlag)
-
Constructor Details
-
EntityDebugSubscriptionRegistry
public EntityDebugSubscriptionRegistry()
-
-
Method Details
-
register
public static <T, E extends net.minecraft.world.entity.Entity> void register(net.minecraft.util.debug.DebugSubscription<T> debugSubscription, Predicate<net.minecraft.world.entity.Entity> shouldSubscribe, DebugValueFactory<E, T> valueFactory) - Type Parameters:
T- the inner type of theDebugSubscription.E- the type ofEntityto check against.- Parameters:
debugSubscription- theDebugSubscription.shouldSubscribe- whether anEntityshould subscribe to thisDebugSubscription.valueFactory- the factory for the value of typeT.
-
register
public static <T, E extends net.minecraft.world.entity.Entity> void register(net.minecraft.util.debug.DebugSubscription<T> debugSubscription, Predicate<net.minecraft.world.entity.Entity> shouldSubscribe, DebugValueFactory<E, T> valueFactory, boolean isEnabledFlag) - Type Parameters:
T- the inner type of theDebugSubscription.E- the type ofEntityto check against.- Parameters:
debugSubscription- theDebugSubscription.shouldSubscribe- whether anEntityshould subscribe to thisDebugSubscription.valueFactory- the factory for the value of typeT.isEnabledFlag- the flag determining whether to register thisDebugSubscription.
-