EntityPreviewComponent
Shows an entity or a block in 3D. The player drags it to turn it, or it follows the mouse.
Java
Inside a PanelComponent constructor. The same call draws in every family and chroma.
Java
add(new EntityPreviewComponent(at(new Box("pig", 12, 26, 80, 120)), words, EntityView.of("minecraft:pig")));
add(new EntityPreviewComponent(at(new Box("me", 110, 26, 80, 120)), words, EntityView.player()).followMouse());
add(new EntityPreviewComponent(at(new Box("log", 208, 26, 80, 120)), words, EntityView.block("minecraft:oak_log")));Turn
Drag to turn.
