Class PointOfInterestDebugRenderer
- java.lang.Object
-
- net.minecraft.client.renderer.debug.PointOfInterestDebugRenderer
-
- All Implemented Interfaces:
DebugRenderer.IDebugRenderer
public class PointOfInterestDebugRenderer extends java.lang.Object implements DebugRenderer.IDebugRenderer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PointOfInterestDebugRenderer.BrainInfo
static class
PointOfInterestDebugRenderer.POIInfo
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.util.UUID,PointOfInterestDebugRenderer.BrainInfo>
brainDumpsPerEntity
private java.util.UUID
lastLookedAtUuid
private static org.apache.logging.log4j.Logger
LOGGER
private Minecraft
minecraft
private java.util.Map<BlockPos,PointOfInterestDebugRenderer.POIInfo>
pois
-
Constructor Summary
Constructors Constructor Description PointOfInterestDebugRenderer(Minecraft p_i50976_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrUpdateBrainDump(PointOfInterestDebugRenderer.BrainInfo p_217692_1_)
void
addPoi(PointOfInterestDebugRenderer.POIInfo p_217691_1_)
void
clear()
private void
clearRemovedEntities()
private void
doRender(double p_229035_1_, double p_229035_3_, double p_229035_5_)
private java.util.Map<BlockPos,java.util.List<java.lang.String>>
getGhostPois()
private java.util.Set<java.lang.String>
getPotentialTicketHolderNames(PointOfInterestDebugRenderer.POIInfo p_239342_1_)
private java.util.Collection<java.util.UUID>
getPotentialTicketHolders(BlockPos p_239343_1_)
private java.util.Set<java.lang.String>
getTicketHolderNames(PointOfInterestDebugRenderer.POIInfo p_217696_1_)
private java.util.Collection<java.util.UUID>
getTicketHolders(BlockPos p_239340_1_)
private static void
highlightPoi(BlockPos p_217699_0_)
private boolean
isMobSelected(PointOfInterestDebugRenderer.BrainInfo p_217703_1_)
private boolean
isPlayerCloseEnoughToMob(PointOfInterestDebugRenderer.BrainInfo p_217694_1_)
void
removePoi(BlockPos p_217698_1_)
void
render(MatrixStack p_225619_1_, IRenderTypeBuffer p_225619_2_, double p_225619_3_, double p_225619_5_, double p_225619_7_)
private void
renderBrainInfo(PointOfInterestDebugRenderer.BrainInfo p_229038_1_, double p_229038_2_, double p_229038_4_, double p_229038_6_)
private void
renderGhostPoi(BlockPos p_222921_1_, java.util.List<java.lang.String> p_222921_2_)
private void
renderPath(PointOfInterestDebugRenderer.BrainInfo p_229037_1_, double p_229037_2_, double p_229037_4_, double p_229037_6_)
private void
renderPoiInfo(PointOfInterestDebugRenderer.POIInfo p_217705_1_)
private static void
renderTextOverMob(IPosition p_217693_0_, int p_217693_1_, java.lang.String p_217693_2_, int p_217693_3_, float p_217693_4_)
private static void
renderTextOverPoi(java.lang.String p_217695_0_, PointOfInterestDebugRenderer.POIInfo p_217695_1_, int p_217695_2_, int p_217695_3_)
private static void
renderTextOverPos(java.lang.String p_222923_0_, BlockPos p_222923_1_, int p_222923_2_, int p_222923_3_)
void
setFreeTicketCount(BlockPos p_217706_1_, int p_217706_2_)
private void
updateLastLookedAtUuid()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
minecraft
private final Minecraft minecraft
-
pois
private final java.util.Map<BlockPos,PointOfInterestDebugRenderer.POIInfo> pois
-
brainDumpsPerEntity
private final java.util.Map<java.util.UUID,PointOfInterestDebugRenderer.BrainInfo> brainDumpsPerEntity
-
lastLookedAtUuid
@Nullable private java.util.UUID lastLookedAtUuid
-
-
Constructor Detail
-
PointOfInterestDebugRenderer
public PointOfInterestDebugRenderer(Minecraft p_i50976_1_)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceDebugRenderer.IDebugRenderer
-
addPoi
public void addPoi(PointOfInterestDebugRenderer.POIInfo p_217691_1_)
-
removePoi
public void removePoi(BlockPos p_217698_1_)
-
setFreeTicketCount
public void setFreeTicketCount(BlockPos p_217706_1_, int p_217706_2_)
-
addOrUpdateBrainDump
public void addOrUpdateBrainDump(PointOfInterestDebugRenderer.BrainInfo p_217692_1_)
-
render
public void render(MatrixStack p_225619_1_, IRenderTypeBuffer p_225619_2_, double p_225619_3_, double p_225619_5_, double p_225619_7_)
- Specified by:
render
in interfaceDebugRenderer.IDebugRenderer
-
clearRemovedEntities
private void clearRemovedEntities()
-
doRender
private void doRender(double p_229035_1_, double p_229035_3_, double p_229035_5_)
-
highlightPoi
private static void highlightPoi(BlockPos p_217699_0_)
-
renderGhostPoi
private void renderGhostPoi(BlockPos p_222921_1_, java.util.List<java.lang.String> p_222921_2_)
-
renderPoiInfo
private void renderPoiInfo(PointOfInterestDebugRenderer.POIInfo p_217705_1_)
-
renderPath
private void renderPath(PointOfInterestDebugRenderer.BrainInfo p_229037_1_, double p_229037_2_, double p_229037_4_, double p_229037_6_)
-
renderBrainInfo
private void renderBrainInfo(PointOfInterestDebugRenderer.BrainInfo p_229038_1_, double p_229038_2_, double p_229038_4_, double p_229038_6_)
-
renderTextOverPoi
private static void renderTextOverPoi(java.lang.String p_217695_0_, PointOfInterestDebugRenderer.POIInfo p_217695_1_, int p_217695_2_, int p_217695_3_)
-
renderTextOverPos
private static void renderTextOverPos(java.lang.String p_222923_0_, BlockPos p_222923_1_, int p_222923_2_, int p_222923_3_)
-
renderTextOverMob
private static void renderTextOverMob(IPosition p_217693_0_, int p_217693_1_, java.lang.String p_217693_2_, int p_217693_3_, float p_217693_4_)
-
getTicketHolderNames
private java.util.Set<java.lang.String> getTicketHolderNames(PointOfInterestDebugRenderer.POIInfo p_217696_1_)
-
getPotentialTicketHolderNames
private java.util.Set<java.lang.String> getPotentialTicketHolderNames(PointOfInterestDebugRenderer.POIInfo p_239342_1_)
-
isMobSelected
private boolean isMobSelected(PointOfInterestDebugRenderer.BrainInfo p_217703_1_)
-
isPlayerCloseEnoughToMob
private boolean isPlayerCloseEnoughToMob(PointOfInterestDebugRenderer.BrainInfo p_217694_1_)
-
getTicketHolders
private java.util.Collection<java.util.UUID> getTicketHolders(BlockPos p_239340_1_)
-
getPotentialTicketHolders
private java.util.Collection<java.util.UUID> getPotentialTicketHolders(BlockPos p_239343_1_)
-
getGhostPois
private java.util.Map<BlockPos,java.util.List<java.lang.String>> getGhostPois()
-
updateLastLookedAtUuid
private void updateLastLookedAtUuid()
-
-