-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/1.20.6' into 1.20.6
- Loading branch information
Showing
104 changed files
with
8,140 additions
and
1,112 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -42,3 +42,6 @@ replay_*.log | |
output/ | ||
logs/ | ||
.vim/ | ||
|
||
# yarn | ||
remappedSrc |
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,3 @@ | ||
[submodule "fuji-fabric.wiki"] | ||
path = fuji-fabric.wiki | ||
url = https://github.com/sakurawald/fuji-fabric.wiki.git |
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
Submodule fuji-fabric.wiki
added at
2a71d1
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
27 changes: 27 additions & 0 deletions
27
src/main/java/io/github/sakurawald/common/event/PostPlayerConnectEvent.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,27 @@ | ||
package io.github.sakurawald.common.event; | ||
|
||
import net.fabricmc.fabric.api.event.Event; | ||
import net.fabricmc.fabric.api.event.EventFactory; | ||
import net.minecraft.network.ClientConnection; | ||
import net.minecraft.network.DisconnectionInfo; | ||
import net.minecraft.server.network.ConnectedClientData; | ||
import net.minecraft.server.network.ServerPlayerEntity; | ||
import net.minecraft.util.ActionResult; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
public interface PostPlayerConnectEvent { | ||
Event<PostPlayerConnectEvent> EVENT = EventFactory.createArrayBacked(PostPlayerConnectEvent.class, | ||
(listeners) -> (connection, player, commonListenerCookie) -> { | ||
for (PostPlayerConnectEvent listener : listeners) { | ||
ActionResult result = listener.interact(connection, player, commonListenerCookie); | ||
|
||
if (result != ActionResult.PASS) { | ||
return result; | ||
} | ||
} | ||
|
||
return ActionResult.PASS; | ||
}); | ||
|
||
ActionResult interact(ClientConnection connection, ServerPlayerEntity player, ConnectedClientData commonListenerCookie); | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/io/github/sakurawald/common/event/PreCommandExecuteEvent.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,24 @@ | ||
package io.github.sakurawald.common.event; | ||
|
||
import com.mojang.brigadier.ParseResults; | ||
import com.mojang.brigadier.context.CommandContext; | ||
import net.fabricmc.fabric.api.event.Event; | ||
import net.fabricmc.fabric.api.event.EventFactory; | ||
import net.minecraft.server.command.ServerCommandSource; | ||
import net.minecraft.util.ActionResult; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
public interface PreCommandExecuteEvent { | ||
Event<PreCommandExecuteEvent> EVENT = EventFactory.createArrayBacked(PreCommandExecuteEvent.class, | ||
(listeners) -> (parseResults, string) -> { | ||
for (PreCommandExecuteEvent listener : listeners) { | ||
ActionResult result = listener.interact(parseResults, string); | ||
if (result != ActionResult.PASS) { | ||
return result; | ||
} | ||
} | ||
return ActionResult.PASS; | ||
}); | ||
|
||
ActionResult interact(ParseResults<ServerCommandSource> parseResults, String string); | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/io/github/sakurawald/common/event/PrePlayerDeathEvent.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,23 @@ | ||
package io.github.sakurawald.common.event; | ||
|
||
import net.fabricmc.fabric.api.event.Event; | ||
import net.fabricmc.fabric.api.event.EventFactory; | ||
import net.minecraft.entity.damage.DamageSource; | ||
import net.minecraft.server.network.ServerPlayerEntity; | ||
import net.minecraft.util.ActionResult; | ||
|
||
public interface PrePlayerDeathEvent { | ||
Event<PrePlayerDeathEvent> EVENT = EventFactory.createArrayBacked(PrePlayerDeathEvent.class, | ||
(listeners) -> (player, damageSource) -> { | ||
for (PrePlayerDeathEvent listener : listeners) { | ||
ActionResult result = listener.interact(player, damageSource); | ||
if (result != ActionResult.PASS) { | ||
return result; | ||
} | ||
} | ||
|
||
return ActionResult.PASS; | ||
}); | ||
|
||
ActionResult interact(ServerPlayerEntity player, DamageSource damageSource); | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/io/github/sakurawald/common/event/PrePlayerDisconnectEvent.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,27 @@ | ||
package io.github.sakurawald.common.event; | ||
|
||
import net.fabricmc.fabric.api.event.Event; | ||
import net.fabricmc.fabric.api.event.EventFactory; | ||
import net.minecraft.entity.passive.SheepEntity; | ||
import net.minecraft.entity.player.PlayerEntity; | ||
import net.minecraft.network.DisconnectionInfo; | ||
import net.minecraft.server.network.ServerPlayerEntity; | ||
import net.minecraft.util.ActionResult; | ||
|
||
public interface PrePlayerDisconnectEvent { | ||
|
||
Event<PrePlayerDisconnectEvent> EVENT = EventFactory.createArrayBacked(PrePlayerDisconnectEvent.class, | ||
(listeners) -> (player, disconnectionInfo) -> { | ||
for (PrePlayerDisconnectEvent listener : listeners) { | ||
ActionResult result = listener.interact(player, disconnectionInfo); | ||
|
||
if(result != ActionResult.PASS) { | ||
return result; | ||
} | ||
} | ||
|
||
return ActionResult.PASS; | ||
}); | ||
|
||
ActionResult interact(ServerPlayerEntity player, DisconnectionInfo disconnectionInfo); | ||
} |
2 changes: 1 addition & 1 deletion
2
.../initializer/seen/GameProfileCacheEx.java → .../common/structure/GameProfileCacheEx.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
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.