en:rpd:named_entity_kind
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:rpd:named_entity_kind [2026/08/29 01:55] – Wiki maintenance: Fix language link consistency, add missing elemental pages, fix malformed links Bot | en:rpd:named_entity_kind [2026/08/29 01:58] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== 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 ==== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.mechanics; | ||
| + | |||
| + | public interface NamedEntityKind { | ||
| + | String getEntityKind(); | ||
| + | String name(); //this one for humans | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Methods ==== | ||
| + | * **``getEntityKind()``** — Returns the machine-readable entity kind identifier (e.g. used for serialization, | ||
| + | * **``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 ==== | ||
| + | * Java: [[https:// | ||
| + | * Machine-readable reference: [[mr: | ||
| + | |||
| + | ==== See Also ==== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | |||
| + | {{tag> rpd interface entity base_class}} | ||
en/rpd/named_entity_kind.txt · Last modified: by 127.0.0.1
