Search in sources :

Example 1 with TerraformBoatType

use of com.terraformersmc.terraform.boat.api.TerraformBoatType in project Blockus by Brandcraf06.

the class BlockusItems method registerBoat.

public static Item registerBoat(String path, String boatPath) {
    Identifier id = Blockus.id(path);
    Identifier boatId = Blockus.id(boatPath);
    Item item = TerraformBoatItemHelper.registerBoatItem(id, () -> TerraformBoatTypeRegistry.INSTANCE.get(boatId));
    TerraformBoatType boatType = new TerraformBoatType.Builder().item(item).build();
    Registry.register(TerraformBoatTypeRegistry.INSTANCE, boatId, boatType);
    return item;
}
Also used : Item(net.minecraft.item.Item) SignItem(net.minecraft.item.SignItem) Identifier(net.minecraft.util.Identifier) TerraformBoatType(com.terraformersmc.terraform.boat.api.TerraformBoatType)

Aggregations

TerraformBoatType (com.terraformersmc.terraform.boat.api.TerraformBoatType)1 Item (net.minecraft.item.Item)1 SignItem (net.minecraft.item.SignItem)1 Identifier (net.minecraft.util.Identifier)1