Interface EntityTypesInvoker
public interface EntityTypesInvoker
Invoker for registering boat and chest boat factories to map the boat item to the boat's entity type. You should use these methods when registering your boat.
- Since:
- 1.0
- See Also:
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T extends net.minecraft.world.entity.vehicle.boat.AbstractBoat>
net.minecraft.world.entity.EntityType.EntityFactory<T> registerModBoatFactory(Supplier<net.minecraft.world.item.Item> boatItem) static <T extends net.minecraft.world.entity.vehicle.boat.AbstractBoat>
net.minecraft.world.entity.EntityType.EntityFactory<T> registerModChestBoatFactory(Supplier<net.minecraft.world.item.Item> boatItem)
-
Method Details
-
registerModBoatFactory
static <T extends net.minecraft.world.entity.vehicle.boat.AbstractBoat> net.minecraft.world.entity.EntityType.EntityFactory<T> registerModBoatFactory(Supplier<net.minecraft.world.item.Item> boatItem) -
registerModChestBoatFactory
static <T extends net.minecraft.world.entity.vehicle.boat.AbstractBoat> net.minecraft.world.entity.EntityType.EntityFactory<T> registerModChestBoatFactory(Supplier<net.minecraft.world.item.Item> boatItem)
-