001package net.tnemc.item.providers;
002/*
003 * The New Item Library
004 * Copyright (C) 2022 - 2025 Daniel "creatorfromhell" Vidmar
005 *
006 * This program is free software; you can redistribute it and/or
007 * modify it under the terms of the GNU Lesser General Public
008 * License as published by the Free Software Foundation; either
009 * version 3 of the License, or (at your option) any later version.
010 *
011 * This program is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014 * Lesser General Public License for more details.
015 *
016 * You should have received a copy of the GNU Lesser General Public License
017 * along with this program; if not, write to the Free Software Foundation,
018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
019 */
020
021import java.util.Objects;
022import java.util.UUID;
023
024/**
025 * SkullProfile
026 *
027 * @author creatorfromhell
028 * @since 0.0.1.0
029 */
030public class SkullProfile {
031
032  protected String name = null;
033  protected UUID uuid = null;
034  protected String texture = null;
035
036  public SkullProfile() {
037
038  }
039
040  public SkullProfile(final String name, final UUID uuid) {
041
042    this.name = name;
043    this.uuid = uuid;
044  }
045
046  public SkullProfile(final String name, final UUID uuid, final String texture) {
047
048    this.name = name;
049    this.uuid = uuid;
050    this.texture = texture;
051  }
052
053  public String getName() {
054
055    return name;
056  }
057
058  public void setName(final String name) {
059
060    this.name = name;
061  }
062
063  public UUID getUuid() {
064
065    return uuid;
066  }
067
068  public void setUuid(final UUID uuid) {
069
070    this.uuid = uuid;
071  }
072
073  public String getTexture() {
074
075    return texture;
076  }
077
078  public void setTexture(final String texture) {
079
080    this.texture = texture;
081  }
082
083  public boolean equals(final SkullProfile profile) {
084
085    return Objects.equals(profile.getName(), name)
086           && profile.getUuid() == uuid
087           && Objects.equals(profile.getTexture(), texture);
088  }
089}