Record Class ActivityData<E extends LivingEntity>

java.lang.Object
java.lang.Record
net.minecraft.world.entity.ai.ActivityData<E>

public record ActivityData<E extends LivingEntity>(Activity activityType, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super E extends LivingEntity>>> behaviorPriorityPairs, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryStatus>> conditions, Set<MemoryModuleType<?>> memoriesToEraseWhenStopped) extends Record
  • Field Details

    • activityType

      private final Activity activityType
      The field for the activityType record component.
    • behaviorPriorityPairs

      private final ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super E extends LivingEntity>>> behaviorPriorityPairs
      The field for the behaviorPriorityPairs record component.
    • conditions

      private final Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryStatus>> conditions
      The field for the conditions record component.
    • memoriesToEraseWhenStopped

      private final Set<MemoryModuleType<?>> memoriesToEraseWhenStopped
      The field for the memoriesToEraseWhenStopped record component.
  • Constructor Details

    • ActivityData

      public ActivityData(Activity activityType, ImmutableList<? extends com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super E>>> behaviorPriorityPairs, Set<com.mojang.datafixers.util.Pair<MemoryModuleType<?>, MemoryStatus>> conditions, Set<MemoryModuleType<?>> memoriesToEraseWhenStopped)
      Creates an instance of a ActivityData record class.
      Parameters:
      activityType - the value for the activityType record component
      behaviorPriorityPairs - the value for the behaviorPriorityPairs record component
      conditions - the value for the conditions record component
      memoriesToEraseWhenStopped - the value for the memoriesToEraseWhenStopped record component
  • Method Details