@Environment(value=CLIENT) public class VillageDebugRenderer extends Object implements DebugRenderer.Renderer
Modifier and Type | Class and Description |
---|---|
static class |
VillageDebugRenderer.Brain |
static class |
VillageDebugRenderer.PointOfInterest |
Modifier and Type | Field and Description |
---|---|
private Map<UUID,VillageDebugRenderer.Brain> |
brains |
private MinecraftClient |
client |
private static Logger |
LOGGER |
private Map<BlockPos,VillageDebugRenderer.PointOfInterest> |
pointsOfInterest |
private UUID |
targetedEntity |
Constructor and Description |
---|
VillageDebugRenderer(MinecraftClient minecraftClient) |
Modifier and Type | Method and Description |
---|---|
void |
addBrain(VillageDebugRenderer.Brain brain) |
void |
addPointOfInterest(VillageDebugRenderer.PointOfInterest pointOfInterest) |
void |
clear() |
private void |
drawBrain(VillageDebugRenderer.Brain brain,
double cameraX,
double cameraY,
double cameraZ) |
private void |
drawGhostPointOfInterest(BlockPos pos,
List<String> brains) |
private void |
drawPath(VillageDebugRenderer.Brain brain,
double cameraX,
double cameraY,
double cameraZ) |
private static void |
drawPointOfInterest(BlockPos pos) |
private void |
drawPointOfInterestInfo(VillageDebugRenderer.PointOfInterest pointOfInterest) |
private static void |
drawString(Position pos,
int offsetY,
String string,
int color,
float size) |
private static void |
drawString(String string,
BlockPos pos,
int offsetY,
int color) |
private static void |
drawString(String string,
VillageDebugRenderer.PointOfInterest pointOfInterest,
int offsetY,
int color) |
private Collection<UUID> |
getBrains(BlockPos pointOfInterest) |
private Map<BlockPos,List<String>> |
getGhostPointsOfInterest() |
private Set<String> |
getVillagerNames(VillageDebugRenderer.PointOfInterest pointOfInterest) |
private boolean |
isClose(VillageDebugRenderer.Brain brain) |
private boolean |
isTargeted(VillageDebugRenderer.Brain brain) |
private void |
method_23135(double double2,
double double3,
double double4) |
private void |
method_24805() |
private Set<String> |
method_29385(VillageDebugRenderer.PointOfInterest pointOfInterest) |
private Collection<UUID> |
method_29386(BlockPos blockPos) |
void |
removePointOfInterest(BlockPos blockPos) |
void |
render(MatrixStack matrices,
VertexConsumerProvider vertexConsumers,
double cameraX,
double cameraY,
double cameraZ) |
void |
setFreeTicketCount(BlockPos pos,
int freeTicketCount) |
private void |
updateTargetedEntity() |
private static final Logger LOGGER
private final MinecraftClient client
private final Map<BlockPos,VillageDebugRenderer.PointOfInterest> pointsOfInterest
private final Map<UUID,VillageDebugRenderer.Brain> brains
public VillageDebugRenderer(MinecraftClient minecraftClient)
public void clear()
clear
in interface DebugRenderer.Renderer
public void addPointOfInterest(VillageDebugRenderer.PointOfInterest pointOfInterest)
public void removePointOfInterest(BlockPos blockPos)
public void setFreeTicketCount(BlockPos pos, int freeTicketCount)
public void addBrain(VillageDebugRenderer.Brain brain)
public void render(MatrixStack matrices, VertexConsumerProvider vertexConsumers, double cameraX, double cameraY, double cameraZ)
render
in interface DebugRenderer.Renderer
private void method_24805()
private void method_23135(double double2, double double3, double double4)
private static void drawPointOfInterest(BlockPos pos)
private void drawPointOfInterestInfo(VillageDebugRenderer.PointOfInterest pointOfInterest)
private void drawPath(VillageDebugRenderer.Brain brain, double cameraX, double cameraY, double cameraZ)
private void drawBrain(VillageDebugRenderer.Brain brain, double cameraX, double cameraY, double cameraZ)
private static void drawString(String string, VillageDebugRenderer.PointOfInterest pointOfInterest, int offsetY, int color)
private static void drawString(Position pos, int offsetY, String string, int color, float size)
private Set<String> getVillagerNames(VillageDebugRenderer.PointOfInterest pointOfInterest)
private Set<String> method_29385(VillageDebugRenderer.PointOfInterest pointOfInterest)
private boolean isTargeted(VillageDebugRenderer.Brain brain)
private boolean isClose(VillageDebugRenderer.Brain brain)
private Collection<UUID> getBrains(BlockPos pointOfInterest)
private Collection<UUID> method_29386(BlockPos blockPos)
private void updateTargetedEntity()