Class PotatoProjectileTypeManager

java.lang.Object
com.simibubi.create.content.curiosities.weapons.PotatoProjectileTypeManager

public class PotatoProjectileTypeManager extends Object
  • Constructor Details

    • PotatoProjectileTypeManager

      public PotatoProjectileTypeManager()
  • Method Details

    • registerBuiltinType

      public static void registerBuiltinType(net.minecraft.resources.ResourceLocation id, PotatoCannonProjectileType type)
    • getBuiltinType

      public static PotatoCannonProjectileType getBuiltinType(net.minecraft.resources.ResourceLocation id)
    • getCustomType

      public static PotatoCannonProjectileType getCustomType(net.minecraft.resources.ResourceLocation id)
    • getTypeForItem

      public static PotatoCannonProjectileType getTypeForItem(net.minecraftforge.registries.IRegistryDelegate<net.minecraft.world.item.Item> item)
    • getTypeForStack

      public static Optional<PotatoCannonProjectileType> getTypeForStack(net.minecraft.world.item.ItemStack item)
    • clear

      public static void clear()
    • fillItemMap

      public static void fillItemMap()
    • toBuffer

      public static void toBuffer(net.minecraft.network.FriendlyByteBuf buffer)
    • fromBuffer

      public static void fromBuffer(net.minecraft.network.FriendlyByteBuf buffer)
    • syncTo

      public static void syncTo(net.minecraft.server.level.ServerPlayer player)
    • syncToAll

      public static void syncToAll()