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 intprivate static final intprivate final Map<BlockPos, BeeDebugRenderer.HiveDebugInfo> private UUIDprivate static final intprivate static final intprivate static final intprivate final Minecraftprivate static final intprivate static final intprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final booleanprivate static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrUpdateBeeInfo(BeeDebugPayload.BeeInfo pBeeInfo) voidaddOrUpdateHiveInfo(HiveDebugPayload.HiveInfo pHiveInfo, long pLastSeen) voidclear()private voidprivate voidprivate voiddoRender(PoseStack pPoseStack, MultiBufferSource pBuffer) private static StringgetBeeUuidsAsString(Collection<UUID> pBeeUuids) private CameragetHiveMemberNames(HiveDebugPayload.HiveInfo pHiveInfo) private Collection<UUID> getHiveMembers(BlockPos pPos) private StringgetPosDescription(BeeDebugPayload.BeeInfo pBeeInfo, BlockPos pPos) private static voidhighlightHive(PoseStack pPoseStack, MultiBufferSource pBuffer, BlockPos pHivePos) private booleanisBeeSelected(BeeDebugPayload.BeeInfo pBeeInfo) private booleanvoidremoveBeeInfo(int pId) voidrender(PoseStack pPoseStack, MultiBufferSource pBufferSource, double pCamX, double pCamY, double pCamZ) private voidrenderBeeInfo(PoseStack pPoseStack, MultiBufferSource pBuffer, BeeDebugPayload.BeeInfo pBeeInfo) private voidrenderFlowerInfos(PoseStack pPoseStack, MultiBufferSource pBuffer) private voidrenderGhostHive(PoseStack pPoseStack, MultiBufferSource pBuffer, BlockPos pHivePos, List<String> pGhostHives) private voidrenderHiveInfo(PoseStack pPoseStack, MultiBufferSource pBuffer, HiveDebugPayload.HiveInfo pHiveInfo, Collection<UUID> pBeeUuids) private voidrenderPath(PoseStack pPoseStack, MultiBufferSource pBuffer, BeeDebugPayload.BeeInfo pBeeInfo) private static voidrenderTextOverHive(PoseStack pPoseStack, MultiBufferSource pBuffer, String pText, HiveDebugPayload.HiveInfo pHiveInfo, int pLayer, int pColor) private static voidrenderTextOverMob(PoseStack pPoseStack, MultiBufferSource pBuffer, Position pPos, int pLayer, String pText, int pColor, float pScale) private static voidrenderTextOverPos(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:
-
ORANGE
private static final int ORANGE- See Also:
-
GRAY
private static final int GRAY- See Also:
-
PINK
private static final int PINK- See Also:
-
minecraft
-
hives
-
beeInfosPerEntity
-
lastLookedAtUuid
-
-
Constructor Details
-
BeeDebugRenderer
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin 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:
renderin 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()
-