42 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| package net.minecraft.client.gui.render.state.pip;
 | |
| 
 | |
| import net.fabricmc.api.EnvType;
 | |
| import net.fabricmc.api.Environment;
 | |
| import net.minecraft.client.gui.navigation.ScreenRectangle;
 | |
| import net.minecraft.client.model.PlayerModel;
 | |
| import net.minecraft.resources.ResourceLocation;
 | |
| import org.jetbrains.annotations.Nullable;
 | |
| 
 | |
| @Environment(EnvType.CLIENT)
 | |
| public record GuiSkinRenderState(
 | |
| 	PlayerModel playerModel,
 | |
| 	ResourceLocation texture,
 | |
| 	float rotationX,
 | |
| 	float rotationY,
 | |
| 	float pivotY,
 | |
| 	int x0,
 | |
| 	int y0,
 | |
| 	int x1,
 | |
| 	int y1,
 | |
| 	float scale,
 | |
| 	@Nullable ScreenRectangle scissorArea,
 | |
| 	@Nullable ScreenRectangle bounds
 | |
| ) implements PictureInPictureRenderState {
 | |
| 	public GuiSkinRenderState(
 | |
| 		PlayerModel playerModel,
 | |
| 		ResourceLocation texture,
 | |
| 		float rotationX,
 | |
| 		float rotationY,
 | |
| 		float pivotY,
 | |
| 		int x0,
 | |
| 		int y0,
 | |
| 		int x1,
 | |
| 		int y1,
 | |
| 		float scale,
 | |
| 		@Nullable ScreenRectangle scissorArea
 | |
| 	) {
 | |
| 		this(
 | |
| 			playerModel, texture, rotationX, rotationY, pivotY, x0, y0, x1, y1, scale, scissorArea, PictureInPictureRenderState.getBounds(x0, y0, x1, y1, scissorArea)
 | |
| 		);
 | |
| 	}
 | |
| }
 |