Class BrainDebugRenderer
java.lang.Object
net.minecraft.client.renderer.debug.BrainDebugRenderer
- All Implemented Interfaces:
DebugRenderer.SimpleDebugRenderer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<UUID, BrainDebugPayload.BrainDump> private static final int
private static final int
private static final int
private UUID
private static final org.slf4j.Logger
private static final int
private static final int
private static final int
private final Minecraft
private static final int
private static final int
private final Map
<BlockPos, BrainDebugRenderer.PoiInfo> private static final int
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final float
private static final int
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOrUpdateBrainDump
(BrainDebugPayload.BrainDump pBrainDump) void
addPoi
(BrainDebugRenderer.PoiInfo pPoiInfo) void
clear()
private void
private void
doRender
(PoseStack pPoseStack, MultiBufferSource pBuffer, double pX, double pY, double pZ) private Collection
<UUID> private Collection
<UUID> getTicketHolders
(BlockPos pPos) private static void
highlightPoi
(PoseStack pPoseStack, MultiBufferSource pBuffer, BlockPos pPos) private boolean
isMobSelected
(BrainDebugPayload.BrainDump pBrainDump) private boolean
isPlayerCloseEnoughToMob
(BrainDebugPayload.BrainDump pBrainDump) void
removeBrainDump
(int pId) void
void
render
(PoseStack pPoseStack, MultiBufferSource pBufferSource, double pCamX, double pCamY, double pCamZ) private void
renderBrainInfo
(PoseStack pPoseStack, MultiBufferSource pBuffer, BrainDebugPayload.BrainDump pBrainDump, double pX, double pY, double pZ) private void
renderGhostPoi
(PoseStack pPoseStack, MultiBufferSource pBuffer, BlockPos pPos, List<String> pPoiName) private void
renderPath
(PoseStack pPoseStack, MultiBufferSource pBuffer, BrainDebugPayload.BrainDump pBrainDump, double pX, double pY, double pZ) private void
renderPoiInfo
(PoseStack pPoseStack, MultiBufferSource pBuffer, BrainDebugRenderer.PoiInfo pPoiInfo) private static void
renderTextOverMob
(PoseStack pPoseStack, MultiBufferSource pBuffer, Position pPos, int pLayer, String pText, int pColor, float pScale) private static void
renderTextOverPoi
(PoseStack pPoseStack, MultiBufferSource pBuffer, String pText, BrainDebugRenderer.PoiInfo pPoiInfo, int pLayer, int pColor) private static void
renderTextOverPos
(PoseStack pPoseStack, MultiBufferSource pBuffer, String pText, BlockPos pPos, int pLayer, int pColor) void
setFreeTicketCount
(BlockPos pPos, int pFreeTicketCount) private void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SHOW_NAME_FOR_ALL
private static final boolean SHOW_NAME_FOR_ALL- See Also:
-
SHOW_PROFESSION_FOR_ALL
private static final boolean SHOW_PROFESSION_FOR_ALL- See Also:
-
SHOW_BEHAVIORS_FOR_ALL
private static final boolean SHOW_BEHAVIORS_FOR_ALL- See Also:
-
SHOW_ACTIVITIES_FOR_ALL
private static final boolean SHOW_ACTIVITIES_FOR_ALL- See Also:
-
SHOW_INVENTORY_FOR_ALL
private static final boolean SHOW_INVENTORY_FOR_ALL- See Also:
-
SHOW_GOSSIPS_FOR_ALL
private static final boolean SHOW_GOSSIPS_FOR_ALL- See Also:
-
SHOW_PATH_FOR_ALL
private static final boolean SHOW_PATH_FOR_ALL- See Also:
-
SHOW_HEALTH_FOR_ALL
private static final boolean SHOW_HEALTH_FOR_ALL- See Also:
-
SHOW_WANTS_GOLEM_FOR_ALL
private static final boolean SHOW_WANTS_GOLEM_FOR_ALL- See Also:
-
SHOW_ANGER_LEVEL_FOR_ALL
private static final boolean SHOW_ANGER_LEVEL_FOR_ALL- See Also:
-
SHOW_NAME_FOR_SELECTED
private static final boolean SHOW_NAME_FOR_SELECTED- See Also:
-
SHOW_PROFESSION_FOR_SELECTED
private static final boolean SHOW_PROFESSION_FOR_SELECTED- See Also:
-
SHOW_BEHAVIORS_FOR_SELECTED
private static final boolean SHOW_BEHAVIORS_FOR_SELECTED- See Also:
-
SHOW_ACTIVITIES_FOR_SELECTED
private static final boolean SHOW_ACTIVITIES_FOR_SELECTED- See Also:
-
SHOW_MEMORIES_FOR_SELECTED
private static final boolean SHOW_MEMORIES_FOR_SELECTED- See Also:
-
SHOW_INVENTORY_FOR_SELECTED
private static final boolean SHOW_INVENTORY_FOR_SELECTED- See Also:
-
SHOW_GOSSIPS_FOR_SELECTED
private static final boolean SHOW_GOSSIPS_FOR_SELECTED- See Also:
-
SHOW_PATH_FOR_SELECTED
private static final boolean SHOW_PATH_FOR_SELECTED- See Also:
-
SHOW_HEALTH_FOR_SELECTED
private static final boolean SHOW_HEALTH_FOR_SELECTED- See Also:
-
SHOW_WANTS_GOLEM_FOR_SELECTED
private static final boolean SHOW_WANTS_GOLEM_FOR_SELECTED- See Also:
-
SHOW_ANGER_LEVEL_FOR_SELECTED
private static final boolean SHOW_ANGER_LEVEL_FOR_SELECTED- See Also:
-
SHOW_POI_INFO
private static final boolean SHOW_POI_INFO- See Also:
-
MAX_RENDER_DIST_FOR_BRAIN_INFO
private static final int MAX_RENDER_DIST_FOR_BRAIN_INFO- See Also:
-
MAX_RENDER_DIST_FOR_POI_INFO
private static final int MAX_RENDER_DIST_FOR_POI_INFO- See Also:
-
MAX_TARGETING_DIST
private static final int MAX_TARGETING_DIST- See Also:
-
TEXT_SCALE
private static final float TEXT_SCALE- See Also:
-
WHITE
private static final int WHITE- See Also:
-
YELLOW
private static final int YELLOW- See Also:
-
CYAN
private static final int CYAN- See Also:
-
GREEN
private static final int GREEN- See Also:
-
GRAY
private static final int GRAY- See Also:
-
PINK
private static final int PINK- See Also:
-
RED
private static final int RED- See Also:
-
ORANGE
private static final int ORANGE- See Also:
-
minecraft
-
pois
-
brainDumpsPerEntity
-
lastLookedAtUuid
-
-
Constructor Details
-
BrainDebugRenderer
-
-
Method Details
-
clear
public void clear()- Specified by:
clear
in interfaceDebugRenderer.SimpleDebugRenderer
-
addPoi
-
removePoi
-
setFreeTicketCount
-
addOrUpdateBrainDump
-
removeBrainDump
public void removeBrainDump(int pId) -
render
public void render(PoseStack pPoseStack, MultiBufferSource pBufferSource, double pCamX, double pCamY, double pCamZ) - Specified by:
render
in interfaceDebugRenderer.SimpleDebugRenderer
-
clearRemovedEntities
private void clearRemovedEntities() -
doRender
private void doRender(PoseStack pPoseStack, MultiBufferSource pBuffer, double pX, double pY, double pZ) -
highlightPoi
-
renderGhostPoi
private void renderGhostPoi(PoseStack pPoseStack, MultiBufferSource pBuffer, BlockPos pPos, List<String> pPoiName) -
renderPoiInfo
private void renderPoiInfo(PoseStack pPoseStack, MultiBufferSource pBuffer, BrainDebugRenderer.PoiInfo pPoiInfo) -
renderPath
private void renderPath(PoseStack pPoseStack, MultiBufferSource pBuffer, BrainDebugPayload.BrainDump pBrainDump, double pX, double pY, double pZ) -
renderBrainInfo
private void renderBrainInfo(PoseStack pPoseStack, MultiBufferSource pBuffer, BrainDebugPayload.BrainDump pBrainDump, double pX, double pY, double pZ) -
renderTextOverPoi
private static void renderTextOverPoi(PoseStack pPoseStack, MultiBufferSource pBuffer, String pText, BrainDebugRenderer.PoiInfo pPoiInfo, int pLayer, int pColor) -
renderTextOverPos
private static void renderTextOverPos(PoseStack pPoseStack, MultiBufferSource pBuffer, String pText, BlockPos pPos, int pLayer, int pColor) -
renderTextOverMob
private static void renderTextOverMob(PoseStack pPoseStack, MultiBufferSource pBuffer, Position pPos, int pLayer, String pText, int pColor, float pScale) -
getTicketHolderNames
-
getPotentialTicketHolderNames
-
isMobSelected
-
isPlayerCloseEnoughToMob
-
getTicketHolders
-
getPotentialTicketHolders
-
getGhostPois
-
updateLastLookedAtUuid
private void updateLastLookedAtUuid()
-