Renamed the commonly used Position POJO into AdvancedPosition, as it also hold pitch, yaw and roll
Made GuiDropdown only accept instances of GuiEntryListEntry to avoid unneccessary toString() methods returning the name Added GuiEntryListValueEntry which holds a Value and a Name to be displayed Continued work on GuiObjectManager
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package eu.crushedpixel.replaymod.entities;
|
||||
|
||||
import eu.crushedpixel.replaymod.holders.Position;
|
||||
import eu.crushedpixel.replaymod.holders.AdvancedPosition;
|
||||
import eu.crushedpixel.replaymod.replay.LesserDataWatcher;
|
||||
import eu.crushedpixel.replaymod.replay.ReplayHandler;
|
||||
import net.minecraft.client.Minecraft;
|
||||
@@ -158,7 +158,7 @@ public class CameraEntity extends EntityPlayer {
|
||||
updateMovement();
|
||||
}
|
||||
|
||||
public void moveAbsolute(Position pos) {
|
||||
public void moveAbsolute(AdvancedPosition pos) {
|
||||
this.moveAbsolute(pos.getX(), pos.getY(), pos.getZ());
|
||||
rotationPitch = (float)pos.getPitch();
|
||||
rotationYaw = (float)pos.getYaw();
|
||||
@@ -180,7 +180,7 @@ public class CameraEntity extends EntityPlayer {
|
||||
updateBoundingBox();
|
||||
}
|
||||
|
||||
public void movePath(Position pos) {
|
||||
public void movePath(AdvancedPosition pos) {
|
||||
this.prevRotationPitch = this.rotationPitch = (float)pos.getPitch();
|
||||
this.prevRotationYaw = this.rotationYaw = (float)pos.getYaw();
|
||||
this.lastTickPosX = this.prevPosX = this.posX = pos.getX();
|
||||
|
||||
Reference in New Issue
Block a user