User Tools

Site Tools


en:rpd:named_entity_kind

Named Entity Kind

NamedEntityKind is a base Java interface in Remixed Dungeon used as a common contract for identifying and naming game entities. It is defined in `com.nyrds.pixeldungeon.mechanics`.

Interface Definition

package com.nyrds.pixeldungeon.mechanics;
 
public interface NamedEntityKind {
    String getEntityKind(); //this one for machines
    String name(); //this one for humans
}

Methods

  • ``getEntityKind()`` — Returns the machine-readable entity kind identifier (e.g. used for serialization, factory lookup, JSON configuration matches).
  • ``name()`` — Returns the human-readable name used in the UI and logs. In subclasses this is typically implemented by returning values from string resources via ``StringsManager.getVar(R.string.XXX)``.

Source Code

See Also

  • Doom Interface — Example interface that extends NamedEntityKind
  • Buff — Base buff class that implements NamedEntityKind
en/rpd/named_entity_kind.txt · Last modified: by 127.0.0.1