@Environment(value=CLIENT) public class BeeDebugRenderer extends Object implements DebugRenderer.Renderer
Modifier and Type | Class and Description |
---|---|
static class |
BeeDebugRenderer.Bee |
static class |
BeeDebugRenderer.Hive |
Modifier and Type | Field and Description |
---|---|
private Map<UUID,BeeDebugRenderer.Bee> |
bees |
private MinecraftClient |
client |
private Map<BlockPos,BeeDebugRenderer.Hive> |
hives |
private UUID |
targetedEntity |
Constructor and Description |
---|
BeeDebugRenderer(MinecraftClient client) |
Modifier and Type | Method and Description |
---|---|
void |
addBee(BeeDebugRenderer.Bee bee) |
void |
addHive(BeeDebugRenderer.Hive hive) |
void |
clear() |
private void |
drawBee(BeeDebugRenderer.Bee bee) |
private static void |
drawBox(BlockPos pos,
float expand,
float red,
float green,
float blue,
float alpha) |
private void |
drawFlowers() |
private static void |
drawHive(BlockPos pos) |
private void |
drawHiveBees(BlockPos pos,
List<String> bees) |
private void |
drawHiveInfo(BeeDebugRenderer.Hive hive,
Collection<UUID> blacklistingBees) |
private void |
drawPath(BeeDebugRenderer.Bee bee) |
private static void |
drawString(Position pos,
int line,
String string,
int color,
float size) |
private static void |
drawString(String string,
BeeDebugRenderer.Hive hive,
int line,
int color) |
private static void |
drawString(String string,
BlockPos pos,
int line,
int color) |
private Map<BlockPos,List<String>> |
getBeesByHive() |
private Collection<UUID> |
getBeesForHive(BlockPos hivePos) |
private Map<BlockPos,Set<UUID>> |
getBlacklistingBees() |
private Camera |
getCameraPos() |
private String |
getPositionString(BeeDebugRenderer.Bee bee,
BlockPos pos) |
private boolean |
isInRange(BeeDebugRenderer.Bee bee) |
private boolean |
isTargeted(BeeDebugRenderer.Bee bee) |
private void |
removeInvalidBees() |
private void |
removeOutdatedHives() |
private void |
render() |
void |
render(MatrixStack matrices,
VertexConsumerProvider vertexConsumers,
double cameraX,
double cameraY,
double cameraZ) |
private static String |
toString(Collection<UUID> bees) |
private void |
updateTargetedEntity() |
private final MinecraftClient client
private final Map<BlockPos,BeeDebugRenderer.Hive> hives
private final Map<UUID,BeeDebugRenderer.Bee> bees
private UUID targetedEntity
public BeeDebugRenderer(MinecraftClient client)
public void clear()
clear
in interface DebugRenderer.Renderer
public void addHive(BeeDebugRenderer.Hive hive)
public void addBee(BeeDebugRenderer.Bee bee)
public void render(MatrixStack matrices, VertexConsumerProvider vertexConsumers, double cameraX, double cameraY, double cameraZ)
render
in interface DebugRenderer.Renderer
private void removeInvalidBees()
private void removeOutdatedHives()
private void render()
private void drawFlowers()
private static String toString(Collection<UUID> bees)
private static void drawHive(BlockPos pos)
private static void drawBox(BlockPos pos, float expand, float red, float green, float blue, float alpha)
private void drawHiveInfo(BeeDebugRenderer.Hive hive, Collection<UUID> blacklistingBees)
private void drawPath(BeeDebugRenderer.Bee bee)
private void drawBee(BeeDebugRenderer.Bee bee)
private static void drawString(String string, BeeDebugRenderer.Hive hive, int line, int color)
private static void drawString(Position pos, int line, String string, int color, float size)
private Camera getCameraPos()
private String getPositionString(BeeDebugRenderer.Bee bee, BlockPos pos)
private boolean isTargeted(BeeDebugRenderer.Bee bee)
private boolean isInRange(BeeDebugRenderer.Bee bee)
private Collection<UUID> getBeesForHive(BlockPos hivePos)
private void updateTargetedEntity()