Typo fixing round
Light check over all scarpet docs Resolves #1626, resolves #1613, resolves #1597, some of the fixes are from these
This commit is contained in:
12 files changed
+34
-37
No files matched your search
@@ -128,8 +128,6 @@ public interface CarpetExtension
|
||||
default void onReload(MinecraftServer server) {}
|
||||
|
||||
/**
|
||||
* Event that gets called when a player logs in
|
||||
*
|
||||
* @return A {@link String} usually being the extension's id
|
||||
*
|
||||
*/
|
||||
@@ -146,7 +144,7 @@ public interface CarpetExtension
|
||||
* rules.
|
||||
*
|
||||
* @param lang A {@link String} being the language id selected by the user
|
||||
* @return A {@link Map<String, String>} containing the string key with it's
|
||||
* @return A {@link Map<String, String>} containing the string key with its
|
||||
* respective translation {@link String} or an empty map if not available
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -8,7 +8,6 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.core.RegistryAccess;
|
||||
import net.minecraft.core.registries.BuiltInRegistries;
|
||||
import net.minecraft.core.registries.Registries;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
@@ -29,7 +28,7 @@ public class ExplosionLogHelper
|
||||
private final Object2IntMap<EntityChangedStatusWithCount> impactedEntities = new Object2IntOpenHashMap<>();
|
||||
|
||||
private static long lastGametime = 0;
|
||||
private static int explosionCountInCurretGT = 0;
|
||||
private static int explosionCountInCurrentGT = 0;
|
||||
private static boolean newTick;
|
||||
|
||||
public ExplosionLogHelper(double x, double y, double z, float power, boolean createFire, Explosion.BlockInteraction blockDestructionType, RegistryAccess regs) {
|
||||
@@ -49,22 +48,22 @@ public class ExplosionLogHelper
|
||||
{
|
||||
newTick = false;
|
||||
if (!(lastGametime == gametime)){
|
||||
explosionCountInCurretGT = 0;
|
||||
explosionCountInCurrentGT = 0;
|
||||
lastGametime = gametime;
|
||||
newTick = true;
|
||||
}
|
||||
explosionCountInCurretGT++;
|
||||
explosionCountInCurrentGT++;
|
||||
LoggerRegistry.getLogger("explosions").log( (option) -> {
|
||||
List<Component> messages = new ArrayList<>();
|
||||
if(newTick) messages.add(c("wb tick : ", "d " + gametime));
|
||||
if ("brief".equals(option))
|
||||
{
|
||||
messages.add( c("d #" + explosionCountInCurretGT,"gb ->",
|
||||
messages.add( c("d #" + explosionCountInCurrentGT,"gb ->",
|
||||
Messenger.dblt("l", pos.x, pos.y, pos.z), (affectBlocks)?"m (affects blocks)":"m (doesn't affect blocks)" ));
|
||||
}
|
||||
if ("full".equals(option))
|
||||
{
|
||||
messages.add( c("d #" + explosionCountInCurretGT,"gb ->", Messenger.dblt("l", pos.x, pos.y, pos.z) ));
|
||||
messages.add( c("d #" + explosionCountInCurrentGT,"gb ->", Messenger.dblt("l", pos.x, pos.y, pos.z) ));
|
||||
messages.add(c("w affects blocks: ", "m " + this.affectBlocks));
|
||||
messages.add(c("w creates fire: ", "m " + this.createFire));
|
||||
messages.add(c("w power: ", "c " + this.power));
|
||||
|
||||
Reference in new issue
Block a user