-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 1.21.40 support almost finished
- Loading branch information
Showing
84 changed files
with
34,709 additions
and
14,225 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
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,38 @@ | ||
package cn.nukkit.block; | ||
|
||
import cn.nukkit.block.property.CommonBlockProperties; | ||
import cn.nukkit.item.Item; | ||
import cn.nukkit.item.ItemCreeperHead; | ||
import cn.nukkit.item.ItemPlayerHead; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class BlockCreeperHead extends BlockHead { | ||
|
||
public static final BlockProperties PROPERTIES = new BlockProperties(CREEPER_HEAD, CommonBlockProperties.FACING_DIRECTION); | ||
|
||
public BlockCreeperHead(BlockState blockState) { | ||
super(blockState); | ||
} | ||
|
||
@Override | ||
public @NotNull BlockProperties getProperties() { | ||
return PROPERTIES; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Creeper Head"; | ||
} | ||
|
||
@Override | ||
public Item[] getDrops(Item item) { | ||
return new Item[]{ | ||
this.toItem() | ||
}; | ||
} | ||
|
||
@Override | ||
public Item toItem() { | ||
return new ItemCreeperHead(); | ||
} | ||
} |
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,38 @@ | ||
package cn.nukkit.block; | ||
|
||
import cn.nukkit.block.property.CommonBlockProperties; | ||
import cn.nukkit.item.Item; | ||
import cn.nukkit.item.ItemDragonHead; | ||
import cn.nukkit.item.ItemZombieHead; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class BlockDragonHead extends BlockHead { | ||
|
||
public static final BlockProperties PROPERTIES = new BlockProperties(DRAGON_HEAD, CommonBlockProperties.FACING_DIRECTION); | ||
|
||
public BlockDragonHead(BlockState blockState) { | ||
super(blockState); | ||
} | ||
|
||
@Override | ||
public @NotNull BlockProperties getProperties() { | ||
return PROPERTIES; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Dragon Head"; | ||
} | ||
|
||
@Override | ||
public Item[] getDrops(Item item) { | ||
return new Item[]{ | ||
this.toItem() | ||
}; | ||
} | ||
|
||
@Override | ||
public Item toItem() { | ||
return new ItemDragonHead(); | ||
} | ||
} |
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
Oops, something went wrong.