Class BeeDebugRenderer
java.lang.Object
net.minecraft.client.renderer.debug.BeeDebugRenderer
- All Implemented Interfaces:
DebugRenderer.SimpleDebugRenderer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<UUID, BeeDebugPayload.BeeInfo> private static final int
private static final int
private static final int
private final Map
<BlockPos, BeeDebugRenderer.HiveDebugInfo> private UUID
private static final int
private static final int
private static final int
private final Minecraft
private static final int
private static final int
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 float
private static final int
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOrUpdateBeeInfo
(BeeDebugPayload.BeeInfo pBeeInfo) void
addOrUpdateHiveInfo
(HiveDebugPayload.HiveInfo pHiveInfo, long pLastSeen) void
clear()
private void
private void
private void
doRender
(PoseStack pPoseStack, MultiBufferSource pBuffer) private static String
getBeeUuidsAsString
(Collection<UUID> pBeeUuids) private Camera
getHiveMemberNames
(HiveDebugPayload.HiveInfo pHiveInfo) private Collection
<UUID> getHiveMembers
(BlockPos pPos) private String
getPosDescription
(BeeDebugPayload.BeeInfo pBeeInfo, BlockPos pPos) private static void
highlightHive
(PoseStack pPoseStack, MultiBufferSource pBuffer, BlockPos pHivePos) private boolean
isBeeSelected
(BeeDebugPayload.BeeInfo pBeeInfo) private boolean
void
removeBeeInfo
(int pId) void
render
(PoseStack pPoseStack, MultiBufferSource pBufferSource, double pCamX, double pCamY, double pCamZ) private void
renderBeeInfo
(PoseStack pPoseStack, MultiBufferSource pBuffer, BeeDebugPayload.BeeInfo pBeeInfo) private void
renderFlowerInfos
(PoseStack pPoseStack, MultiBufferSource pBuffer) private void
renderGhostHive
(PoseStack pPoseStack, MultiBufferSource pBuffer, BlockPos pHivePos, List<String> pGhostHives) private void
renderHiveInfo
(PoseStack pPoseStack, MultiBufferSource pBuffer, HiveDebugPayload.HiveInfo pHiveInfo, Collection<UUID> pBeeUuids) private void
renderPath
(PoseStack pPoseStack, MultiBufferSource pBuffer, BeeDebugPayload.BeeInfo pBeeInfo) private static void
renderTextOverHive
(PoseStack pPoseStack, MultiBufferSource pBuffer, String pText, HiveDebugPayload.HiveInfo pHiveInfo, int pLayer, int pColor) private static void
renderTextOverMob
(PoseStack pPoseStack, MultiBufferSource pBuffer, Position pPos, int pLayer, String pText, int pColor, float pScale) private static void
renderTextOverPos
(PoseStack pPoseStack, MultiBufferSource pBuffer, String pText, BlockPos pPos, int pLayer, int pColor) private void
-
Field Details
-
SHOW_GOAL_FOR_ALL_BEES
private static final boolean SHOW_GOAL_FOR_ALL_BEES- See Also:
-
SHOW_NAME_FOR_ALL_BEES
private static final boolean SHOW_NAME_FOR_ALL_BEES- See Also:
-
SHOW_HIVE_FOR_ALL_BEES
private static final boolean SHOW_HIVE_FOR_ALL_BEES- See Also:
-
SHOW_FLOWER_POS_FOR_ALL_BEES
private static final boolean SHOW_FLOWER_POS_FOR_ALL_BEES- See Also:
-
SHOW_TRAVEL_TICKS_FOR_ALL_BEES
private static final boolean SHOW_TRAVEL_TICKS_FOR_ALL_BEES- See Also:
-
SHOW_PATH_FOR_ALL_BEES
private static final boolean SHOW_PATH_FOR_ALL_BEES- See Also:
-
SHOW_GOAL_FOR_SELECTED_BEE
private static final boolean SHOW_GOAL_FOR_SELECTED_BEE- See Also:
-
SHOW_NAME_FOR_SELECTED_BEE
private static final boolean SHOW_NAME_FOR_SELECTED_BEE- See Also:
-
SHOW_HIVE_FOR_SELECTED_BEE
private static final boolean SHOW_HIVE_FOR_SELECTED_BEE- See Also:
-
SHOW_FLOWER_POS_FOR_SELECTED_BEE
private static final boolean SHOW_FLOWER_POS_FOR_SELECTED_BEE- See Also:
-
SHOW_TRAVEL_TICKS_FOR_SELECTED_BEE
private static final boolean SHOW_TRAVEL_TICKS_FOR_SELECTED_BEE- See Also:
-
SHOW_PATH_FOR_SELECTED_BEE
private static final boolean SHOW_PATH_FOR_SELECTED_BEE- See Also:
-
SHOW_HIVE_MEMBERS
private static final boolean SHOW_HIVE_MEMBERS- See Also:
-
SHOW_BLACKLISTS
private static final boolean SHOW_BLACKLISTS- See Also:
-
MAX_RENDER_DIST_FOR_HIVE_OVERLAY
private static final int MAX_RENDER_DIST_FOR_HIVE_OVERLAY- See Also:
-
MAX_RENDER_DIST_FOR_BEE_OVERLAY
private static final int MAX_RENDER_DIST_FOR_BEE_OVERLAY- See Also:
-
MAX_TARGETING_DIST
private static final int MAX_TARGETING_DIST- See Also:
-
HIVE_TIMEOUT
private static final int HIVE_TIMEOUT- 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:
-
ORANGE
private static final int ORANGE- 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:
-
minecraft
-
hives
-
beeInfosPerEntity
-
lastLookedAtUuid
-
-
Constructor Details
-
BeeDebugRenderer
-
-
Method Details
-
clear
public void clear()- Specified by:
clear
in interfaceDebugRenderer.SimpleDebugRenderer
-
addOrUpdateHiveInfo
-
addOrUpdateBeeInfo
-
removeBeeInfo
public void removeBeeInfo(int pId) -
render
public void render(PoseStack pPoseStack, MultiBufferSource pBufferSource, double pCamX, double pCamY, double pCamZ) - Specified by:
render
in interfaceDebugRenderer.SimpleDebugRenderer
-
clearRemovedBees
private void clearRemovedBees() -
clearRemovedHives
private void clearRemovedHives() -
doRender
-
createHiveBlacklistMap
-
renderFlowerInfos
-
getBeeUuidsAsString
-
highlightHive
private static void highlightHive(PoseStack pPoseStack, MultiBufferSource pBuffer, BlockPos pHivePos) -
renderGhostHive
private void renderGhostHive(PoseStack pPoseStack, MultiBufferSource pBuffer, BlockPos pHivePos, List<String> pGhostHives) -
renderHiveInfo
private void renderHiveInfo(PoseStack pPoseStack, MultiBufferSource pBuffer, HiveDebugPayload.HiveInfo pHiveInfo, Collection<UUID> pBeeUuids) -
renderPath
private void renderPath(PoseStack pPoseStack, MultiBufferSource pBuffer, BeeDebugPayload.BeeInfo pBeeInfo) -
renderBeeInfo
private void renderBeeInfo(PoseStack pPoseStack, MultiBufferSource pBuffer, BeeDebugPayload.BeeInfo pBeeInfo) -
renderTextOverHive
private static void renderTextOverHive(PoseStack pPoseStack, MultiBufferSource pBuffer, String pText, HiveDebugPayload.HiveInfo pHiveInfo, 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) -
getCamera
-
getHiveMemberNames
-
getPosDescription
-
isBeeSelected
-
isPlayerCloseEnoughToMob
-
getHiveMembers
-
getGhostHives
-
updateLastLookedAtUuid
private void updateLastLookedAtUuid()
-