minecraft-source/src/net/minecraft/world/InteractionResult.java

17 lines
345 B
Java

package net.minecraft.world;
public enum InteractionResult {
SUCCESS,
CONSUME,
PASS,
FAIL;
public boolean consumesAction() {
return this == InteractionResult.SUCCESS || this == InteractionResult.CONSUME;
}
public boolean shouldSwing() {
return this == InteractionResult.SUCCESS;
}
}