Commits

md_5 authored 3339db16616
Update to Minecraft 1.21.4
No tags

src/main/java/org/bukkit/block/data/type/CreakingHeart.java

Modified
1 1 package org.bukkit.block.data.type;
2 2
3 -import org.bukkit.MinecraftExperimental;
4 3 import org.bukkit.block.data.Orientable;
5 4 import org.jetbrains.annotations.ApiStatus;
6 -import org.jetbrains.annotations.NotNull;
7 5
8 6 /**
9 - * 'creaking' is the creaking status of this block.
7 + * 'active' is whether the block is active.
8 + * <br>
9 + * 'natural' is whether this is a naturally generated block.
10 10 */
11 11 @ApiStatus.Experimental
12 -@MinecraftExperimental(MinecraftExperimental.Requires.WINTER_DROP)
13 12 public interface CreakingHeart extends Orientable {
14 13
15 14 /**
16 - * Gets the value of the 'creaking' property.
15 + * Gets the value of the 'active' property.
17 16 *
18 - * @return the 'creaking' value
17 + * @return the 'active' value
19 18 */
20 - @NotNull
21 - Creaking getCreaking();
19 + boolean isActive();
22 20
23 21 /**
24 - * Sets the value of the 'creaking' property.
22 + * Sets the value of the 'active' property.
25 23 *
26 - * @param creaking the new 'creaking' value
24 + * @param active the new 'active' value
27 25 */
28 - void setCreaking(@NotNull Creaking creaking);
26 + void setActive(boolean active);
29 27
30 28 /**
31 - * Creaking status.
29 + * Gets the value of the 'natural' property.
30 + *
31 + * @return the 'natural' value
32 32 */
33 - public enum Creaking {
33 + boolean isNatural();
34 34
35 - /**
36 - * The block is disabled.
37 - */
38 - DISABLED,
39 - /**
40 - * The block is dormant.
41 - */
42 - DORMANT,
43 - /**
44 - * The block is active.
45 - */
46 - ACTIVE;
47 - }
35 + /**
36 + * Sets the value of the 'natural' property.
37 + *
38 + * @param natural the new 'natural' value
39 + */
40 + void setNatural(boolean natural);
48 41 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut