mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-20 19:04:44 -04:00
Fix javadoc and typo (#1270)
* Update RenderContext.java
* Update WorldRenderEvents.java
(cherry picked from commit d795f854a9
)
This commit is contained in:
parent
53f160a834
commit
f9381f3529
2 changed files with 5 additions and 5 deletions
fabric-renderer-api-v1/src/main/java/net/fabricmc/fabric/api/renderer/v1/render
fabric-rendering-v1/src/main/java/net/fabricmc/fabric/api/client/rendering/v1
|
@ -28,6 +28,8 @@ import net.fabricmc.fabric.api.renderer.v1.model.FabricBakedModel;
|
|||
|
||||
/**
|
||||
* This defines the instance made available to models for buffering vertex data at render time.
|
||||
*
|
||||
* <p>Only the renderer should implement or extend this interface.
|
||||
*/
|
||||
public interface RenderContext {
|
||||
/**
|
||||
|
@ -70,8 +72,6 @@ public interface RenderContext {
|
|||
*
|
||||
* <p>Meshes are never mutated by the transformer - only buffered quads. This ensures thread-safe
|
||||
* use of meshes/models across multiple chunk builders.
|
||||
*
|
||||
* <p>Only the renderer should implement or extend this interface.
|
||||
*/
|
||||
void pushTransform(QuadTransform transform);
|
||||
|
||||
|
|
|
@ -175,11 +175,11 @@ public final class WorldRenderEvents {
|
|||
* be accomplished by mixin to the block outline render routine itself, typically
|
||||
* by targeting {@link WorldRenderer#drawShapeOutline}.
|
||||
*/
|
||||
public static final Event<BlockOutline> BLOCK_OUTLINE = EventFactory.createArrayBacked(BlockOutline.class, (worldRenderContext, blockOutlieContext) -> true, callbacks -> (worldRenderContext, blockOutlieContext) -> {
|
||||
public static final Event<BlockOutline> BLOCK_OUTLINE = EventFactory.createArrayBacked(BlockOutline.class, (worldRenderContext, blockOutlineContext) -> true, callbacks -> (worldRenderContext, blockOutlineContext) -> {
|
||||
boolean shouldRender = true;
|
||||
|
||||
for (final BlockOutline callback : callbacks) {
|
||||
if (!callback.onBlockOutline(worldRenderContext, blockOutlieContext)) {
|
||||
if (!callback.onBlockOutline(worldRenderContext, blockOutlineContext)) {
|
||||
shouldRender = false;
|
||||
}
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ public final class WorldRenderEvents {
|
|||
@Environment(EnvType.CLIENT)
|
||||
@FunctionalInterface
|
||||
public interface BlockOutline {
|
||||
boolean onBlockOutline(WorldRenderContext worldRenderContext, BlockOutlineContext blockOutlieContext);
|
||||
boolean onBlockOutline(WorldRenderContext worldRenderContext, BlockOutlineContext blockOutlineContext);
|
||||
}
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue