mr:named_entity_kind
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:named_entity_kind [2026/08/29 01:55] – Wiki maintenance: Fix language link consistency, add missing elemental pages, fix malformed links Bot | mr:named_entity_kind [2026/08/29 01:58] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Named Entity Kind - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | |||
| + | * [[https:// | ||
| + | |||
| + | <code java> | ||
| + | // In NamedEntityKind.java | ||
| + | package com.nyrds.pixeldungeon.mechanics; | ||
| + | |||
| + | public interface NamedEntityKind { | ||
| + | String getEntityKind(); | ||
| + | String name(); //this one for humans | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | **Interface Definition: | ||
| + | * Package: `com.nyrds.pixeldungeon.mechanics` | ||
| + | * Methods: | ||
| + | * `getEntityKind()` — returns the machine-readable entity kind identifier (e.g. used for serialization, | ||
| + | * `name()` — returns the human-readable name used in UI and logs | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | |||
| + | The `NamedEntityKind` interface does not have JSON configuration. It is: | ||
| + | * A Java interface implemented by base game entity classes (mobs, items, buffs, spells, etc.) | ||
| + | * Used as a common contract for identifying and naming entities | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | |||
| + | The `NamedEntityKind` interface does not reference string resources directly. The `name()` method is typically implemented in subclasses to return values from string resources via `StringsManager.getVar(R.string.XXX)`. | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | |||
| + | The `NamedEntityKind` interface is implemented entirely in Java. No Lua scripts use it directly. | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | |||
| + | **Interfaces extending NamedEntityKind: | ||
| + | * [[mr: | ||
| + | |||
| + | **Entities implementing NamedEntityKind (selected): | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | |||
| + | {{tag> rpd mr code reference interface entity}} | ||
mr/named_entity_kind.txt · Last modified: by 127.0.0.1
