aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0372-Block-Ticking-API.patch
diff options
context:
space:
mode:
authorMiniDigger | Martin <[email protected]>2023-12-22 16:51:19 +0100
committerMiniDigger | Martin <[email protected]>2023-12-22 16:51:19 +0100
commit4afd50fa3617484c89fb971b022ee2458eb87c07 (patch)
tree1a17882729895b8422bff7fed3a2ea77f4fbeeed /patches/api/0372-Block-Ticking-API.patch
parentb4c9e7e5d40fd4a0a7fea270fd4ebb72b38fa0fc (diff)
downloadPaper-4afd50fa3617484c89fb971b022ee2458eb87c07.tar.gz
Paper-4afd50fa3617484c89fb971b022ee2458eb87c07.zip
revert later, initial softspoon setup
this just copies over stuff without fixing history
Diffstat (limited to 'patches/api/0372-Block-Ticking-API.patch')
-rw-r--r--patches/api/0372-Block-Ticking-API.patch51
1 files changed, 0 insertions, 51 deletions
diff --git a/patches/api/0372-Block-Ticking-API.patch b/patches/api/0372-Block-Ticking-API.patch
deleted file mode 100644
index 8944708dd4..0000000000
--- a/patches/api/0372-Block-Ticking-API.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Owen1212055 <[email protected]>
-Date: Sun, 26 Dec 2021 13:23:52 -0500
-Subject: [PATCH] Block Ticking API
-
-
-diff --git a/src/main/java/org/bukkit/block/Block.java b/src/main/java/org/bukkit/block/Block.java
-index 732e8ea9e1bdcbc8f9a0888e07940fe21617b490..49974558799830d827f9ccd65a8bafee3fb0376b 100644
---- a/src/main/java/org/bukkit/block/Block.java
-+++ b/src/main/java/org/bukkit/block/Block.java
-@@ -589,6 +589,21 @@ public interface Block extends Metadatable, Translatable, net.kyori.adventure.tr
- * @return true if the block was destroyed
- */
- boolean breakNaturally(@NotNull ItemStack tool, boolean triggerEffect, boolean dropExperience);
-+
-+ /**
-+ * Causes the block to be ticked, this is different from {@link Block#randomTick()},
-+ * in that it is usually scheduled to occur, for example
-+ * redstone components being activated, sand falling, etc.
-+ */
-+ void tick();
-+
-+ /**
-+ * Causes the block to be ticked randomly.
-+ * This has a chance to execute naturally if {@link BlockData#isRandomlyTicked()} is true.
-+ * <p>
-+ * For certain blocks, this behavior may be the same as {@link Block#tick()}.
-+ */
-+ void randomTick();
- // Paper end
-
- /**
-diff --git a/src/main/java/org/bukkit/block/data/BlockData.java b/src/main/java/org/bukkit/block/data/BlockData.java
-index 81351a057fc2647dfd53a95ed78077d74204086b..d30ac3edc475796cf7f1d7ea04f665eef4ce755f 100644
---- a/src/main/java/org/bukkit/block/data/BlockData.java
-+++ b/src/main/java/org/bukkit/block/data/BlockData.java
-@@ -281,4 +281,14 @@ public interface BlockData extends Cloneable {
- */
- float getDestroySpeed(@NotNull ItemStack itemStack, boolean considerEnchants);
- // Paper end - destroy speed API
-+
-+ // Paper start - Tick API
-+ /**
-+ * Gets if this block is ticked randomly in the world.
-+ * The blocks current state may change this value.
-+ *
-+ * @return is ticked randomly
-+ */
-+ boolean isRandomlyTicked();
-+ // Paper end - Tick API
- }