Package cz.jeme.bestium.api.inject
Interface ConvertFunction<M extends net.minecraft.world.entity.Entity,E extends org.bukkit.entity.Entity>
- Type Parameters:
M
- the type of the original Minecraft entity (must extendEntity
)E
- the type of the resulting Bukkit entity (must extendEntity
)
- All Superinterfaces:
BiFunction<org.bukkit.craftbukkit.CraftServer,
M, E>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface ConvertFunction<M extends net.minecraft.world.entity.Entity,E extends org.bukkit.entity.Entity>
extends BiFunction<org.bukkit.craftbukkit.CraftServer,M,E>
A functional interface representing a conversion function that transforms a Minecraft entity of type
M
into a Bukkit entity of type E
, using the given CraftServer
context.-
Method Summary
Methods inherited from interface java.util.function.BiFunction
andThen, apply