public void setStationary(boolean stationary) { synchronized (objectMutex) { this.stationary = stationary; } notifyObservers(messageBuilder.buildStartPerformance(stationary), true); }
public void stopPerformance() { String type = ""; synchronized (objectMutex) { // Some reason this prevents the animation for playing an instrument when stopping (unless // that's what "" does) setCurrentAnimation(getCurrentAnimation()); setPerformanceCounter(0); setPerformanceId(0, true); type = (performanceType) ? "dance" : "music"; if (entertainerExperience != null) { entertainerExperience.cancel(true); entertainerExperience = null; } } sendSystemMessage("@performance:" + type + "_stop_self", (byte) 0); stopAudience(); getClient().getSession().write(messageBuilder.buildStartPerformance(false)); }
public void startPerformance() { getClient().getSession().write(messageBuilder.buildStartPerformance(true)); }