public synchronized void addAnimation(String string, BufferedImage[] images) {
		if(this.getCurrentAnimationType().equals("")){
			this.setCurrentAnimationType(string);
		}
		if(this.animations == null){
			this.animations = new Hashtable<>();
		}
		if(images == null){
			images = new BufferedImage[0];
		}
		this.animations.put(string, images);
	}