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
void
addOrUpdateHiveInfo
(HiveDebugPayload.HiveInfo hiveInfo, long lastSeen) void
clear()
private void
private void
private void
doRender
(PoseStack poseStack, MultiBufferSource buffer) private static String
getBeeUuidsAsString
(Collection<UUID> beeUuids) private Camera
getHiveMemberNames
(HiveDebugPayload.HiveInfo hiveInfo) private Collection
<UUID> getHiveMembers
(BlockPos pos) private String
getPosDescription
(BeeDebugPayload.BeeInfo beeInfo, BlockPos pos) private static void
highlightHive
(PoseStack poseStack, MultiBufferSource buffer, BlockPos hivePos) private boolean
isBeeSelected
(BeeDebugPayload.BeeInfo beeInfo) private boolean
void
removeBeeInfo
(int id) void
render
(PoseStack poseStack, MultiBufferSource bufferSource, double camX, double camY, double camZ) private void
renderBeeInfo
(PoseStack poseStack, MultiBufferSource buffer, BeeDebugPayload.BeeInfo beeInfo) private void
renderFlowerInfos
(PoseStack poseStack, MultiBufferSource buffer) private void
renderGhostHive
(PoseStack poseStack, MultiBufferSource buffer, BlockPos hivePos, List<String> ghostHives) private void
renderHiveInfo
(PoseStack poseStack, MultiBufferSource buffer, HiveDebugPayload.HiveInfo hiveInfo, Collection<UUID> beeUuids) private void
renderPath
(PoseStack poseStack, MultiBufferSource buffer, BeeDebugPayload.BeeInfo beeInfo) private static void
renderTextOverHive
(PoseStack poseStack, MultiBufferSource buffer, String text, HiveDebugPayload.HiveInfo hiveInfo, int layer, int color) private static void
renderTextOverMob
(PoseStack poseStack, MultiBufferSource buffer, Position pos, int layer, String text, int color, float scale) private static void
renderTextOverPos
(PoseStack poseStack, MultiBufferSource buffer, String text, BlockPos pos, int layer, int color) 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 id) -
render
public void render(PoseStack poseStack, MultiBufferSource bufferSource, double camX, double camY, double camZ) - Specified by:
render
in interfaceDebugRenderer.SimpleDebugRenderer
-
clearRemovedBees
private void clearRemovedBees() -
clearRemovedHives
private void clearRemovedHives() -
doRender
-
createHiveBlacklistMap
-
renderFlowerInfos
-
getBeeUuidsAsString
-
highlightHive
-
renderGhostHive
private void renderGhostHive(PoseStack poseStack, MultiBufferSource buffer, BlockPos hivePos, List<String> ghostHives) -
renderHiveInfo
private void renderHiveInfo(PoseStack poseStack, MultiBufferSource buffer, HiveDebugPayload.HiveInfo hiveInfo, Collection<UUID> beeUuids) -
renderPath
private void renderPath(PoseStack poseStack, MultiBufferSource buffer, BeeDebugPayload.BeeInfo beeInfo) -
renderBeeInfo
private void renderBeeInfo(PoseStack poseStack, MultiBufferSource buffer, BeeDebugPayload.BeeInfo beeInfo) -
renderTextOverHive
private static void renderTextOverHive(PoseStack poseStack, MultiBufferSource buffer, String text, HiveDebugPayload.HiveInfo hiveInfo, int layer, int color) -
renderTextOverPos
private static void renderTextOverPos(PoseStack poseStack, MultiBufferSource buffer, String text, BlockPos pos, int layer, int color) -
renderTextOverMob
private static void renderTextOverMob(PoseStack poseStack, MultiBufferSource buffer, Position pos, int layer, String text, int color, float scale) -
getCamera
-
getHiveMemberNames
-
getPosDescription
-
isBeeSelected
-
isPlayerCloseEnoughToMob
-
getHiveMembers
-
getGhostHives
-
updateLastLookedAtUuid
private void updateLastLookedAtUuid()
-