9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-31 04:46:37 +00:00

兵不厌诈

This commit is contained in:
XiaoMoMi
2025-02-16 01:57:02 +08:00
parent c18ee2b477
commit bf9ca6c00f
12 changed files with 215 additions and 1 deletions

View File

@@ -3,5 +3,6 @@ package net.momirealms.craftengine.core.entity.player;
public enum InteractionResult {
FAIL,
SUCCESS,
PASS
PASS,
SUCCESS_AND_CANCEL
}

View File

@@ -42,6 +42,8 @@ public abstract class Player extends Entity implements NetWorkUser {
public abstract boolean isSpectatorMode();
public abstract boolean isAdventureMode();
public abstract void sendActionBar(Component text);
public abstract boolean updateLastSuccessfulInteractionTick(int tick);

View File

@@ -17,4 +17,13 @@ public class ItemKeys {
public static final Key GOLDEN_AXE = Key.of("minecraft:golden_axe");
public static final Key DIAMOND_AXE = Key.of("minecraft:diamond_axe");
public static final Key NETHERITE_AXE = Key.of("minecraft:netherite_axe");
public static final Key WATER_BUCKET = Key.of("minecraft:water_bucket");
public static final Key COD_BUCKET = Key.of("minecraft:cod_bucket");
public static final Key SALMON_BUCKET = Key.of("minecraft:salmon_bucket");
public static final Key TADPOLE_BUCKET = Key.of("minecraft:tadpole_bucket");
public static final Key TROPICAL_FISH_BUCKET = Key.of("minecraft:tropical_fish_bucket");
public static final Key PUFFERFISH_BUCKET = Key.of("minecraft:pufferfish_bucket");
public static final Key AXOLOTL_BUCKET = Key.of("minecraft:axolotl_bucket");
public static final Key BUCKET = Key.of("minecraft:bucket");
public static final Key BONE_MEAL = Key.of("minecraft:bone_meal");
}