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

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

    • Ammo

      public Ammo()
      Default constructor for serializer.
    • Ammo

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

    • getAmmoTitle

      @NotNull public @NotNull String getAmmoTitle()
    • getSymbol

      @Nullable public @Nullable String getSymbol()
    • getDisplay

      @NotNull public @NotNull String getDisplay()
    • getType

      @NotNull public @NotNull IAmmoType getType()
    • getKey

      @NotNull public @NotNull String getKey()
      Specified by:
      getKey in interface me.deecaad.core.utils.Keyable
    • serialize

      @NotNull public @NotNull Ammo serialize(@NotNull @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