-
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for MC 1.21 block/entity types
- Loading branch information
Showing
9 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package net.coreprotect.bukkit; | ||
|
||
import org.bukkit.Material; | ||
import org.bukkit.Tag; | ||
|
||
import net.coreprotect.model.BlockGroup; | ||
|
||
public class Bukkit_v1_21 extends Bukkit_v1_20 implements BukkitInterface { | ||
|
||
public Bukkit_v1_21() { | ||
for (Material value : Tag.TRAPDOORS.getValues()) { | ||
if (value == Material.IRON_TRAPDOOR) { | ||
continue; | ||
} | ||
|
||
if (!BlockGroup.INTERACT_BLOCKS.contains(value)) { | ||
BlockGroup.INTERACT_BLOCKS.add(value); | ||
} | ||
if (!BlockGroup.SAFE_INTERACT_BLOCKS.contains(value)) { | ||
BlockGroup.SAFE_INTERACT_BLOCKS.add(value); | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters