Interface EntityTransformation
- All Known Implementing Classes:
EntitySwapTransformation
public interface EntityTransformation
-
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(net.minecraft.world.entity.LivingEntity entity, CastContext ctx) static <T extends net.minecraft.world.entity.LivingEntity>
EntityTransformationconditional(Class<T> type, Predicate<T> condition, BiConsumer<T, CastContext> action) static <T extends net.minecraft.world.entity.LivingEntity>
EntityTransformationof(Class<T> type, BiConsumer<T, CastContext> action)
-
Method Details
-
apply
-
of
static <T extends net.minecraft.world.entity.LivingEntity> EntityTransformation of(Class<T> type, BiConsumer<T, CastContext> action) -
conditional
static <T extends net.minecraft.world.entity.LivingEntity> EntityTransformation conditional(Class<T> type, Predicate<T> condition, BiConsumer<T, CastContext> action)
-