Table of Contents

Keys - Code References

Machine-readable reference page for Key items in Remixed Dungeon.

Entity Information

Java Classes

Base Key Class

public class Key extends Item {
    // Base class for all key types
    // Handles unlocking logic
}

Key Types

Item Registration

// ItemFactory.java
import com.watabou.pixeldungeon.items.keys.IronKey;
import com.watabou.pixeldungeon.items.keys.SkeletonKey;
 
registerItemClass(IronKey.class);
registerItemClass(SkeletonKey.class);

JSON Configuration

No specific JSON configuration. Keys are implemented entirely in Java.

String Resources

<!-- English (values/strings_all.xml) -->
<string name="IronKey_Name">iron key</string>
<string name="IronKey_Info">The notches on this ancient iron key are well worn; its leather lanyard is battered by age. What door might it open?</string>
<string name="SkeletonKey_Name">skeleton key</string>
<string name="SkeletonKey_Info">This key looks serious: its head is shaped like a skull. Probably it can open some serious door.</string>
 
<!-- Russian (values-ru/strings_all.xml) -->
<string name="IronKey_Name">железный ключ</string>
<string name="IronKey_Info">Засечки на этом древнем ключе износились; продетый в него кожаный ремень давно потрескался. Какую дверь им можно открыть?</string>
<string name="SkeletonKey_Name">ключ-скелет</string>
<string name="SkeletonKey_Info">Весьма внушительный ключ: с головкой в форме черепа. Пожалуй он смог бы открыть некую внушительную дверь.</string>

Lua Scripts

This entity is implemented in Java, no Lua script exists.

Wiki Pages