Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/** * Handles updating while being ridden by an entity */ public void updateRidden() { if (!this.worldObj.isRemote && this.isSneaking()) { this.mountEntity((Entity) null); this.setSneaking(false); } else { double d0 = this.posX; double d1 = this.posY; double d2 = this.posZ; float yaw = this.rotationYaw; float pitch = this.rotationPitch; if(this == Minecraft.getMinecraft().thePlayer) { yaw = PlayerHandler.yaw; pitch = PlayerHandler.pitch; } float f = yaw; float f1 = pitch; super.updateRidden(); this.prevCameraYaw = this.cameraYaw; this.cameraYaw = 0.0F; this.addMountedMovementStat(this.posX - d0, this.posY - d1, this.posZ - d2); if (this.ridingEntity instanceof EntityPig) { this.rotationPitch = f1; this.rotationYaw = f; if(this == Minecraft.getMinecraft().thePlayer) { PlayerHandler.yaw = f; PlayerHandler.pitch = f1; } this.renderYawOffset = ((EntityPig) this.ridingEntity).renderYawOffset; } } }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)