From 62b75235ddeff92e976fcd1de3aba47c12131ec2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 18 May 2016 00:44:18 +0200 Subject: [PATCH] Add interface to modify the pumpkin head "derp mode" of a snowman By: minoneer --- .../src/main/java/org/bukkit/entity/Snowman.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Snowman.java b/paper-api/src/main/java/org/bukkit/entity/Snowman.java index c8070ff26d..818efe2a4d 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Snowman.java +++ b/paper-api/src/main/java/org/bukkit/entity/Snowman.java @@ -5,4 +5,20 @@ package org.bukkit.entity; */ public interface Snowman extends Golem { + /** + * Gets whether this snowman is in "derp mode", meaning it is not wearing a + * pumpkin. + * + * @return True if the snowman is bald, false if it is wearing a pumpkin + */ + boolean isDerp(); + + /** + * Sets whether this snowman is in "derp mode", meaning it is not wearing a + * pumpkin. NOTE: This value is not persisted to disk and will therefore + * reset when the chunk is reloaded. + * + * @param derpMode True to remove the pumpkin, false to add a pumpkin + */ + void setDerp(boolean derpMode); }