KubeJS

KubeJS

61M Downloads

BlockBuilder .texture(Direction, String) ambiguity with .texture(String, String)

Spiker985 opened this issue ยท 1 comments

commented

Spawned from this discord thread.

The following error message occurs when using either

public BlockBuilder texture(String id, String tex) {

or
public BlockBuilder texture(Direction direction, String tex) {

Error occurred while handling event 'block.registry': The choice of Java method dev.latvian.kubejs.block.BlockBuilder.texture matching JavaScript argument types (net.minecraft.util.Direction,string) is ambiguous; candidate methods are: 
    class dev.latvian.kubejs.block.BlockBuilder texture(java.lang.String,java.lang.String)
    class dev.latvian.kubejs.block.BlockBuilder texture(net.minecraft.util.Direction,java.lang.String) (startup_scripts:script.js#22)

Specifically .texture('up', '<texture path>') and .texture(Direction.UP, '<texture path>') or .texture(Facing.UP, '<texture path>')

Workaround is to just use the standard model/block json

commented

Resolved with commit 6a2ad19