public class WorldRenderer extends java.lang.Object implements java.lang.AutoCloseable, IResourceManagerReloadListener
IFutureReloadListener.IStage
コンストラクタと説明 |
---|
WorldRenderer(Minecraft mcIn,
RenderTypeBuffers rainTimeBuffersIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
static void |
addChainedFilledBoxVertices(BufferBuilder builder,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
float red,
float green,
float blue,
float alpha) |
void |
addParticle(IParticleData particleData,
boolean ignoreRange,
boolean minimizeLevel,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addParticle(IParticleData particleData,
boolean alwaysRender,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addRainParticles(ActiveRenderInfo activeRenderInfoIn) |
void |
broadcastSound(int soundID,
BlockPos pos,
int data) |
void |
close() |
void |
createBindEntityOutlineFbs(int width,
int height) |
void |
deleteAllDisplayLists()
Deletes all display lists
|
static void |
drawBoundingBox(com.mojang.blaze3d.vertex.IVertexBuilder bufferIn,
double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ,
float red,
float green,
float blue,
float alpha) |
static void |
drawBoundingBox(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn,
com.mojang.blaze3d.vertex.IVertexBuilder bufferIn,
AxisAlignedBB aabbIn,
float red,
float green,
float blue,
float alpha) |
static void |
drawBoundingBox(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn,
com.mojang.blaze3d.vertex.IVertexBuilder bufferIn,
double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ,
float red,
float green,
float blue,
float alpha) |
static void |
drawBoundingBox(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn,
com.mojang.blaze3d.vertex.IVertexBuilder bufferIn,
double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ,
float red,
float green,
float blue,
float alpha,
float red2,
float green2,
float blue2) |
static void |
drawVoxelShapeParts(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn,
com.mojang.blaze3d.vertex.IVertexBuilder bufferIn,
VoxelShape shapeIn,
double xIn,
double yIn,
double zIn,
float red,
float green,
float blue,
float alpha) |
static int |
getCombinedLight(ILightReader lightReaderIn,
BlockPos blockPosIn) |
java.lang.String |
getDebugInfoEntities()
Gets the entities info for use on the Debug screen
|
java.lang.String |
getDebugInfoRenders()
Gets the render info for use on the Debug screen
|
Framebuffer |
getEntityOutlineFramebuffer() |
static int |
getPackedLightmapCoords(ILightReader lightReaderIn,
BlockState blockStateIn,
BlockPos blockPosIn) |
protected int |
getRenderedChunks() |
IResourceType |
getResourceType() |
boolean |
hasNoChunkUpdates() |
protected boolean |
isRenderEntityOutlines() |
void |
loadRenderers()
Loads all the renderers and sets up the basic settings usage
|
void |
makeEntityOutlineShader()
Creates the entity outline shader to be stored in RenderGlobal.entityOutlineShader
|
void |
markBlockRangeForRenderUpdate(BlockPos blockPosIn,
BlockState oldState,
BlockState newState) |
void |
markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
On the client, re-renders all blocks in this range, inclusive.
|
void |
markForRerender(int sectionX,
int sectionY,
int sectionZ) |
void |
markSurroundingsForRerender(int sectionX,
int sectionY,
int sectionZ) |
void |
notifyBlockUpdate(IBlockReader worldIn,
BlockPos pos,
BlockState oldState,
BlockState newState,
int flags) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
playEvent(PlayerEntity player,
int type,
BlockPos blockPosIn,
int data) |
void |
playRecord(SoundEvent soundIn,
BlockPos pos) |
void |
renderClouds(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn,
float partialTicks,
double viewEntityX,
double viewEntityY,
double viewEntityZ) |
void |
renderEntityOutlineFramebuffer() |
void |
renderSky(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn,
float partialTicks) |
void |
sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress) |
void |
setDisplayListEntitiesDirty() |
void |
setWorldAndLoadRenderers(ClientWorld worldClientIn)
set null to clear
|
protected void |
stopChunkUpdates() |
void |
tick() |
void |
updateCameraAndRender(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn,
float partialTicks,
long finishTimeNano,
boolean drawBlockOutline,
ActiveRenderInfo activeRenderInfoIn,
GameRenderer gameRendererIn,
LightTexture lightmapIn,
Matrix4f projectionIn) |
void |
updateTileEntities(java.util.Collection<TileEntity> tileEntitiesToRemove,
java.util.Collection<TileEntity> tileEntitiesToAdd) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reload
func_225594_i_
public static final Direction[] FACINGS
public WorldRenderer(Minecraft mcIn, RenderTypeBuffers rainTimeBuffersIn)
public void addRainParticles(ActiveRenderInfo activeRenderInfoIn)
public void close()
close
インタフェース内 java.lang.AutoCloseable
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
インタフェース内 IResourceManagerReloadListener
public void makeEntityOutlineShader()
public void renderEntityOutlineFramebuffer()
protected boolean isRenderEntityOutlines()
public void setWorldAndLoadRenderers(@Nullable ClientWorld worldClientIn)
public void loadRenderers()
protected void stopChunkUpdates()
public void createBindEntityOutlineFbs(int width, int height)
public java.lang.String getDebugInfoRenders()
protected int getRenderedChunks()
public java.lang.String getDebugInfoEntities()
public void updateCameraAndRender(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn, float partialTicks, long finishTimeNano, boolean drawBlockOutline, ActiveRenderInfo activeRenderInfoIn, GameRenderer gameRendererIn, LightTexture lightmapIn, Matrix4f projectionIn)
public void tick()
public void renderSky(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn, float partialTicks)
public void renderClouds(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn, float partialTicks, double viewEntityX, double viewEntityY, double viewEntityZ)
public static void drawVoxelShapeParts(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn, com.mojang.blaze3d.vertex.IVertexBuilder bufferIn, VoxelShape shapeIn, double xIn, double yIn, double zIn, float red, float green, float blue, float alpha)
public static void drawBoundingBox(com.mojang.blaze3d.vertex.IVertexBuilder bufferIn, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha)
public static void drawBoundingBox(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn, com.mojang.blaze3d.vertex.IVertexBuilder bufferIn, AxisAlignedBB aabbIn, float red, float green, float blue, float alpha)
public static void drawBoundingBox(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn, com.mojang.blaze3d.vertex.IVertexBuilder bufferIn, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha)
public static void drawBoundingBox(com.mojang.blaze3d.matrix.MatrixStack matrixStackIn, com.mojang.blaze3d.vertex.IVertexBuilder bufferIn, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha, float red2, float green2, float blue2)
public static void addChainedFilledBoxVertices(BufferBuilder builder, double x1, double y1, double z1, double x2, double y2, double z2, float red, float green, float blue, float alpha)
public void notifyBlockUpdate(IBlockReader worldIn, BlockPos pos, BlockState oldState, BlockState newState, int flags)
public void markBlockRangeForRenderUpdate(int x1, int y1, int z1, int x2, int y2, int z2)
public void markBlockRangeForRenderUpdate(BlockPos blockPosIn, BlockState oldState, BlockState newState)
public void markSurroundingsForRerender(int sectionX, int sectionY, int sectionZ)
public void markForRerender(int sectionX, int sectionY, int sectionZ)
public void playRecord(@Nullable SoundEvent soundIn, BlockPos pos)
public void addParticle(IParticleData particleData, boolean alwaysRender, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
public void addParticle(IParticleData particleData, boolean ignoreRange, boolean minimizeLevel, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
public void deleteAllDisplayLists()
public void broadcastSound(int soundID, BlockPos pos, int data)
public void playEvent(PlayerEntity player, int type, BlockPos blockPosIn, int data)
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress)
public boolean hasNoChunkUpdates()
public void setDisplayListEntitiesDirty()
public void updateTileEntities(java.util.Collection<TileEntity> tileEntitiesToRemove, java.util.Collection<TileEntity> tileEntitiesToAdd)
public static int getCombinedLight(ILightReader lightReaderIn, BlockPos blockPosIn)
public static int getPackedLightmapCoords(ILightReader lightReaderIn, BlockState blockStateIn, BlockPos blockPosIn)
public Framebuffer getEntityOutlineFramebuffer()
public IResourceType getResourceType()
getResourceType
インタフェース内 IResourceManagerReloadListener