protocollib - spawning fake armorstands

Discussion in 'Spigot Plugin Development' started by darkkir3, May 21, 2016.

  1. So basically I got a fake clientside armorstand. I want to make it invisible on entityspawn, which is this packet. says that the first index for the entity metadata contains the invisible flag, however It seems that this value is not a byte field:
    Code (Text):
    WrappedDataWatcher.Serializer byteSerializer = WrappedDataWatcher.Registry.get(Byte.class);
            WrappedDataWatcher.WrappedDataWatcherObject dataWatcherObject = new WrappedDataWatcher.WrappedDataWatcherObject(0, byteSerializer);
            byte value = (byte)watcher.getObject(dataWatcherObject);
    That returns a ClassCastException. So um yeah, how do I correctly set/get the value of the watchable object?