-
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.
- Loading branch information
1 parent
7f69891
commit d61476c
Showing
11 changed files
with
51 additions
and
67 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
4 changes: 0 additions & 4 deletions
4
src/client/java/world/vanillyn/render/Screen/Bangboo/FixBangboo.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
src/client/java/world/vanillyn/render/Screen/Bangboo/WishBangboo.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...yn/render/Model/Bangboo/BangbooModel.java → ...d/vanillyn/render/model/BangbooModel.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
4 changes: 2 additions & 2 deletions
4
...llyn/render/Renderer/BangbooRenderer.java → ...nillyn/render/render/BangbooRenderer.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
2 changes: 1 addition & 1 deletion
2
...ld/vanillyn/render/Screen/TestScreen.java → ...ld/vanillyn/render/screen/TestScreen.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
4 changes: 4 additions & 0 deletions
4
src/client/java/world/vanillyn/render/screen/bangboo/FixBangboo.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,4 @@ | ||
package world.vanillyn.render.screen.bangboo; | ||
|
||
public class FixBangboo { | ||
} |
2 changes: 1 addition & 1 deletion
2
.../render/Screen/Bangboo/ManageBangboo.java → .../render/screen/bangboo/ManageBangboo.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
4 changes: 4 additions & 0 deletions
4
src/client/java/world/vanillyn/render/screen/bangboo/WishBangboo.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,4 @@ | ||
package world.vanillyn.render.screen.bangboo; | ||
|
||
public class WishBangboo { | ||
} |
15 changes: 8 additions & 7 deletions
15
...anillyn/render/Screen/Entity/Handler.java → ...anillyn/render/screen/entity/Handler.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 |
---|---|---|
@@ -1,19 +1,20 @@ | ||
package world.vanillyn.render.Screen.Entity; | ||
package world.vanillyn.render.screen.entity; | ||
|
||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraft.entity.Entity; | ||
import net.minecraft.entity.player.PlayerEntity; | ||
import world.vanillyn.BangbooMod; | ||
import world.vanillyn.entity.bangboo.Bangboo; | ||
import world.vanillyn.render.Screen.TestScreen; | ||
import world.vanillyn.render.screen.TestScreen; | ||
|
||
public class Handler { | ||
public static void handleEntityInteraction(PlayerEntity player, Bangboo entity) { | ||
if (player.isSneaking() && entity instanceof Bangboo) { | ||
// previously, if the entity wasn't Bangboo, it'd throw a cast exception in the usage of this method | ||
// fixed so that you don't run into that -- Aurora | ||
public static void handleEntityInteraction(PlayerEntity player, Entity entity) { | ||
if (player.isSneaking() && entity instanceof Bangboo bangboo) { | ||
//lazy example of me sending data over. not pretty but it works! | ||
|
||
MinecraftClient.getInstance().setScreen(new TestScreen(entity, player)); | ||
} else if(player.isSneaking()) { | ||
BangbooMod.LOGGER.warn("Interacted entity is not Bangboo"); | ||
MinecraftClient.getInstance().setScreen(new TestScreen(bangboo, player)); | ||
} | ||
} | ||
} |
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