mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
New Decompiler Runtime Official mappings ItemStacks arnt Capability providers anymore, use Vanilla's system. Co-authored-by: RealMangoRage <[email protected]> Co-authored-by: Paint_Ninja <[email protected]>
22 lines
714 B
Diff
22 lines
714 B
Diff
--- a/net/minecraft/client/Camera.java
|
|
+++ b/net/minecraft/client/Camera.java
|
|
@@ -227,6 +_,18 @@
|
|
return this.partialTickTime;
|
|
}
|
|
|
|
+ public void setAnglesInternal(float yaw, float pitch) {
|
|
+ this.yRot = yaw;
|
|
+ this.xRot = pitch;
|
|
+ }
|
|
+
|
|
+ public net.minecraft.world.level.block.state.BlockState getBlockAtCamera() {
|
|
+ if (!this.initialized)
|
|
+ return net.minecraft.world.level.block.Blocks.AIR.defaultBlockState();
|
|
+ else
|
|
+ return this.level.getBlockState(this.blockPosition).getStateAtViewpoint(this.level, this.blockPosition, this.position);
|
|
+ }
|
|
+
|
|
@OnlyIn(Dist.CLIENT)
|
|
public static class NearPlane {
|
|
final Vec3 forward;
|