Skip to content

Renderer

RIN edited this page Apr 19, 2022 · 1 revision

How To Use

Renderer System

Example

HRenderer renderer = new HRenderer(location, 30,
        players -> players.stream().map(HumanEntity::getName).forEach(System.out::println),
        players -> players.stream().map(HumanEntity::getName).forEach(System.out::println),
        hRenderer -> System.out.println("everyone removed")
).showEveryone(true);

HCore.syncScheduler().every(1)
        .run(() -> renderer.render());
Clone this wiki locally