Back to mods
Kotlin Extensions [Fabric] project artwork

CurseForge · Minecraft mod

Kotlin Extensions [Fabric]

Kotlin Extensions for various Minecraft classes

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Kotlin Extensions [Fabric] release should I use?

Updated 6 years ago
Latest stable file Kotlin Extensions 0.0.0+1.15.2
Game version 1.16-Snapshot, 1.15.2
Loader Fabric

Kotlin Extensions [Fabric] Kotlin Extensions 0.0.0+1.15.2 targets 1.16-Snapshot, 1.15.2 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 2 required mods have matching files.

Where it goes

Is Kotlin Extensions [Fabric] required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Kotlin Extensions [Fabric] Kotlin Extensions 0.0.0+1.15.2 need?

Kotlin Extensions 0.0.0+1.15.2. Change the file and its required mods may change too.

All 2 required mods have matching files

Install Fabric API, Fabric Language Kotlin first. We found matching files for this game-version and loader setup.

Fabric API Needed by Kotlin Extensions [Fabric] Kotlin Extensions 0.0.0+1.15.2
required
Matching file found Matched file: [1.16/1.16.1] Fabric API 0.13.1 build 370
Fabric Language Kotlin Needed by Kotlin Extensions [Fabric] Kotlin Extensions 0.0.0+1.15.2
required
Matching file found Matched file: Fabric Language Kotlin 1.14.2+kotlin.2.4.21

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Kotlin Extensions [Fabric] without breaking your instance.

Built for Kotlin Extensions [Fabric] Kotlin Extensions 0.0.0+1.15.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Kotlin Extensions 0.0.0+1.15.2. It targets 1.16-Snapshot, 1.15.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API, Fabric Language Kotlin first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Kotlin Extensions 0.0.0+1.15.2. It opens that exact file at the source.

About this project

What does Kotlin Extensions [Fabric] add?

This mod is an API that provides useful extensions to existing vanilla classes. They are grouped based on the class that is primarily dealt with or returned by the function.

Block Extensions

  • Block.makeItem() - creates a new BlockItem based on the block. Optionally takes an Item.Settings.
  • Block.matches(Identifier) - checks whether the block is contained in the tag with the given id
  • Block.matches(String) - converts the String to an Identifier then calls matches(Identifier)

Identifier Extensions

  • String.id - converts the String to an Identifier
  • Pair.id - converts the Pair to an Identifier
  • Identifier.component1() and .component2() - allows for destructuring of Identifiers
  • String.validId() - checks if the String is a valid Identifier
  • Pair.validId() checks if the Pair is a valid Identifier

Item Extensions

  • Item.stack() - creates a new ItemStack with the Item. Optionally takes an Int for the count.
  • Item.matches(Tag or Identifier or String) - checks if the Item is in the Tag. Same idea as Block::matches

NBT Tag Extensions

  • compooundTag(vararg Pair) - creates a new CompoundTag with the given elements
  • CompoundTag.set(String, Tag) - operator for CompoundTag::put
  • Map.toCompoundTag() - creates a new CompoundTag from the map's elements
  • Any?.toTag() - Creates a new Tag from the object. Note: if the object cannot be converted into a tag, this will crash the game.
  • interface NBTSerializable - Allows you to create the NBT representation for your classes. Not needed for Entity and BlockEntity subclasses.

Registry Extensions

  • Registry.get(String) - converts to an Identifier and gets the value in the Registry
  • Registry.set(Identifier or String, T) - Registers the value in the Registry using Registry.register
  • Identifier.item() and .block() and .entityType() and .blockEntityType() and .registry() - gets the value at the Identifier in the appropriate Registry

Tag Extensions

  • Identifier.tag() - gets a Tag at the Identifier. Only valid for Item, Block, EntityType, and Fluid. Any other type will crash the game.
  • String.tag() - converts to an Identifier and gets the Tag at it
  • Tag.isEqual(Tag) - Tag.equals is not properly overridden. Use this to compare equality with tags.

World Extensions

  • World.runOnClient(()-Unit) - Runs the passed function only on the client
  • World.runOnServer(()-Unit) - Runs the passed function only on the server

Project description from CurseForge.

Pick your setup

Kotlin Extensions [Fabric] by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

2 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Kotlin Extensions [Fabric] versions and loaders

1 of 1 releases match

Looking for an older file? The official CurseForge project page is in Resources.