java.lang.Object
me.deecaad.weaponmechanics.weapon.reload.ammo.Ammo
All Implemented Interfaces:
me.deecaad.core.file.Serializer<Ammo>

public class Ammo extends Object implements me.deecaad.core.file.Serializer<Ammo>
  • Constructor Details

    • Ammo

      public Ammo()
      Default constructor for serializer.
    • Ammo

      public Ammo(@NotNull String ammoTitle, @Nullable String symbol, @NotNull IAmmoType type)
  • Method Details

    • getAmmoTitle

      @NotNull public String getAmmoTitle()
    • getSymbol

      @Nullable public String getSymbol()
    • getDisplay

      @NotNull public String getDisplay()
    • getType

      @NotNull public IAmmoType getType()
    • serialize

      @NotNull public Ammo serialize(@NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException
      Specified by:
      serialize in interface me.deecaad.core.file.Serializer<Ammo>
      Throws:
      me.deecaad.core.file.SerializerException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object