texture

fun texture(texture: ResourcePath<T>, usePlayerTexture: Boolean = false)

Uses the texture under assets/<namespace>/textures/entity/equipment/<type>/<texture>.png, where namespace and texture are defined by texture and type is the current entity type.

If usePlayerTexture is true, the layer texture is overridden by a texture given by the player.


fun texture(texture: String, usePlayerTexture: Boolean = false)

Uses the texture under textures/entity/equipment/<type>/<texture>.png, where texture is defined by texture and type is the current entity type.

If usePlayerTexture is true, the layer texture is overridden by a texture given by the player.