There was an error while loading. Please reload this page.
You can find Examples here
public ExampleMod(){ ExampleHolderAttacher.register(); }
Register the Packer by calling
SimpleEntityCapabilityStatusPacket.register(channel,id)
(call this wherever you register your packets)
SimpleEntityCapabilityStatusPacket.registerRetriever(ExampleHolderAttacher.RESOURCE_LOCATION, ExampleHolderAttacher::getHolderUnwrap);
ExampleHolderAttacher.getHolder(example_object).ifPresent( holder -> { holder.getValue(); holder.setValue(value); } );