-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add particles showing directions for a bee's hive Improvements in texts color of beehive info.
- Loading branch information
1 parent
03650f8
commit d90b356
Showing
16 changed files
with
132 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
plugins { | ||
id 'fabric-loom' version '1.2-SNAPSHOT' | ||
id 'fabric-loom' version '1.7-SNAPSHOT' | ||
id 'maven-publish' | ||
} | ||
|
||
|
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx1G | ||
# Fabric Properties | ||
# check these on https://modmuss50.me/fabric.html | ||
minecraft_version=1.20.1 | ||
yarn_mappings=1.20.1+build.5 | ||
loader_version=0.14.21 | ||
# Mod Properties | ||
mod_version=0.0.2 | ||
mod_version=0.0.4 | ||
maven_group=cool.muyucloud | ||
archives_base_name=beehave-fabric-1.20.1 | ||
# Dependencies | ||
# check this on https://modmuss50.me/fabric.html | ||
fabric_version=0.84.0+1.20.1 | ||
archives_base_name=beehave-fabric-1.21 | ||
# Fabric Properties | ||
# check these on https://modmuss50.me/fabric.html | ||
minecraft_version=1.21.1 | ||
yarn_mappings=1.21.1+build.1 | ||
loader_version=0.15.11 | ||
|
||
# Fabric API | ||
fabric_version=0.102.0+1.21.1 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip |
7 changes: 7 additions & 0 deletions
7
src/main/java/cool/muyucloud/beehave/access/BeeEntityAccess.java
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,7 @@ | ||
package cool.muyucloud.beehave.access; | ||
|
||
import net.minecraft.util.math.BlockPos; | ||
|
||
public interface BeeEntityAccess { | ||
boolean invokeDoesHiveHaveSpace(BlockPos pos); | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/cool/muyucloud/beehave/access/BeehiveBlockEntityAccess.java
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,9 @@ | ||
package cool.muyucloud.beehave.access; | ||
|
||
import net.minecraft.block.entity.BeehiveBlockEntity; | ||
|
||
import java.util.List; | ||
|
||
public interface BeehiveBlockEntityAccess { | ||
List<BeehiveBlockEntity.BeeData> invokeCreateBeeData(); | ||
} |
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
12 changes: 0 additions & 12 deletions
12
src/main/java/cool/muyucloud/beehave/mixin/BeeEntityAccessor.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/main/java/cool/muyucloud/beehave/mixin/BeeEntityMixin.java
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,17 @@ | ||
package cool.muyucloud.beehave.mixin; | ||
|
||
import cool.muyucloud.beehave.access.BeeEntityAccess; | ||
import net.minecraft.entity.passive.BeeEntity; | ||
import net.minecraft.util.math.BlockPos; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
@Mixin(BeeEntity.class) | ||
public abstract class BeeEntityMixin implements BeeEntityAccess { | ||
@Shadow protected abstract boolean doesHiveHaveSpace(BlockPos pos); | ||
|
||
@Override | ||
public boolean invokeDoesHiveHaveSpace(BlockPos pos) { | ||
return this.doesHiveHaveSpace(pos); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/cool/muyucloud/beehave/mixin/BeehiveBlockEntityMixin.java
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,19 @@ | ||
package cool.muyucloud.beehave.mixin; | ||
|
||
import cool.muyucloud.beehave.access.BeehiveBlockEntityAccess; | ||
import net.minecraft.block.entity.BeehiveBlockEntity; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
import java.util.List; | ||
|
||
@Mixin(BeehiveBlockEntity.class) | ||
public abstract class BeehiveBlockEntityMixin implements BeehiveBlockEntityAccess { | ||
@Shadow protected abstract List<BeehiveBlockEntity.BeeData> createBeesData(); | ||
|
||
@Override | ||
public List<BeehiveBlockEntity.BeeData> invokeCreateBeeData() { | ||
List<BeehiveBlockEntity.BeeData> list = createBeesData(); | ||
return list; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -28,6 +28,6 @@ | |
"depends": { | ||
"fabricloader": "*", | ||
"fabric": "*", | ||
"minecraft": "~1.20" | ||
"minecraft": "~1.21" | ||
} | ||
} |