Migrates the entire package nomenclature to be more direct and straightforward. (#17)

Signed-off-by: Paul Reilly <pawereus@gmail.com>
This commit is contained in:
Paldiu
2023-08-01 22:34:18 -05:00
committed by GitHub
parent e1a6b5e587
commit 21463c50fe
146 changed files with 595 additions and 608 deletions

View File

@ -1,9 +1,9 @@
package me.totalfreedom.fossil;
package fns.fossil;
import me.totalfreedom.base.Patchwork;
import me.totalfreedom.base.Registration;
import me.totalfreedom.fossil.trail.Trailer;
import me.totalfreedom.service.SubscriptionProvider;
import fns.fossil.trail.Trailer;
import fns.patchwork.base.Patchwork;
import fns.patchwork.base.Registration;
import fns.patchwork.service.SubscriptionProvider;
import org.bukkit.plugin.java.JavaPlugin;
public class Fossil extends JavaPlugin

View File

@ -1,12 +1,11 @@
package me.totalfreedom.fossil.bouncypads;
package fns.fossil.bouncypads;
import com.google.errorprone.annotations.Immutable;
import java.util.SplittableRandom;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Player;
import org.bukkit.util.Vector;
import java.util.SplittableRandom;
/**
* Represents a bouncy pad. Has a velocity and a type.
*/

View File

@ -1,7 +1,11 @@
package me.totalfreedom.fossil.bouncypads;
package fns.fossil.bouncypads;
import me.totalfreedom.base.Patchwork;
import me.totalfreedom.fossil.Fossil;
import fns.fossil.Fossil;
import fns.patchwork.base.Patchwork;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.util.stream.Stream;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Tag;
@ -12,11 +16,6 @@ import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerMoveEvent;
import org.jetbrains.annotations.Nullable;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.util.stream.Stream;
/**
* Holds all the active pads for each player, and also manages player pad interaction.
*/

View File

@ -1,4 +1,4 @@
package me.totalfreedom.fossil.bouncypads;
package fns.fossil.bouncypads;
import org.bukkit.block.BlockFace;

View File

@ -19,13 +19,13 @@
* THE SOFTWARE.
*/
package me.totalfreedom.fossil.cmd;
package fns.fossil.cmd;
import me.totalfreedom.command.Commander;
import me.totalfreedom.command.annotation.Base;
import me.totalfreedom.command.annotation.Info;
import me.totalfreedom.command.annotation.Permissive;
import me.totalfreedom.utils.kyori.FreedomMiniMessage;
import fns.patchwork.command.Commander;
import fns.patchwork.command.annotation.Base;
import fns.patchwork.command.annotation.Info;
import fns.patchwork.command.annotation.Permissive;
import fns.patchwork.utils.kyori.FreedomMiniMessage;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.command.CommandSender;
@ -46,9 +46,11 @@ public class CakeCommand extends Commander
@Base
public void broadcastCake(final CommandSender sender)
{
Bukkit.broadcast(FreedomMiniMessage.deserialize(true,
"<rainbow>But there's no sense crying over every mistake. You just keep on trying till you run out of " +
"cake.</rainbow>"));
Bukkit.getServer().sendMessage(FreedomMiniMessage.deserialize(true,
"<rainbow>But there's no sense crying over " +
"every mistake. You just keep on trying " +
"till you run out of " +
"cake.</rainbow>"));
final ItemStack stack = new ItemStack(Material.CAKE, 1);
final ItemMeta meta = stack.getItemMeta();

View File

@ -1,9 +1,9 @@
package me.totalfreedom.fossil.economy;
package fns.fossil.economy;
import me.totalfreedom.economy.CompletedTransaction;
import me.totalfreedom.economy.EconomicEntity;
import me.totalfreedom.economy.Transaction;
import me.totalfreedom.economy.TransactionResult;
import fns.patchwork.economy.CompletedTransaction;
import fns.patchwork.economy.EconomicEntity;
import fns.patchwork.economy.Transaction;
import fns.patchwork.economy.TransactionResult;
public class SimpleCompletedTransaction implements CompletedTransaction
{

View File

@ -1,9 +1,9 @@
package me.totalfreedom.fossil.economy;
package fns.fossil.economy;
import me.totalfreedom.economy.CompletedTransaction;
import me.totalfreedom.economy.MutableTransaction;
import me.totalfreedom.economy.TransactionLogger;
import me.totalfreedom.economy.Transactor;
import fns.patchwork.economy.CompletedTransaction;
import fns.patchwork.economy.MutableTransaction;
import fns.patchwork.economy.TransactionLogger;
import fns.patchwork.economy.Transactor;
public class SimpleLoggedTransactor implements Transactor
{

View File

@ -1,7 +1,7 @@
package me.totalfreedom.fossil.economy;
package fns.fossil.economy;
import me.totalfreedom.economy.EconomicEntity;
import me.totalfreedom.economy.MutableTransaction;
import fns.patchwork.economy.EconomicEntity;
import fns.patchwork.economy.MutableTransaction;
public class SimpleMutableTransaction extends SimpleTransaction implements MutableTransaction
{

View File

@ -1,8 +1,7 @@
package me.totalfreedom.fossil.economy;
import me.totalfreedom.economy.EconomicEntity;
import me.totalfreedom.economy.Transaction;
package fns.fossil.economy;
import fns.patchwork.economy.EconomicEntity;
import fns.patchwork.economy.Transaction;
import java.util.concurrent.atomic.AtomicLong;
public class SimpleTransaction implements Transaction

View File

@ -1,11 +1,11 @@
package me.totalfreedom.fossil.economy;
package fns.fossil.economy;
import me.totalfreedom.audience.MutableAudienceForwarder;
import me.totalfreedom.economy.CompletedTransaction;
import me.totalfreedom.economy.EconomicEntity;
import me.totalfreedom.economy.TransactionLogger;
import me.totalfreedom.economy.TransactionResult;
import me.totalfreedom.utils.logging.FreedomLogger;
import fns.patchwork.audience.MutableAudienceForwarder;
import fns.patchwork.economy.CompletedTransaction;
import fns.patchwork.economy.EconomicEntity;
import fns.patchwork.economy.TransactionLogger;
import fns.patchwork.economy.TransactionResult;
import fns.patchwork.utils.logging.FreedomLogger;
import net.kyori.adventure.text.Component;
public class SimpleTransactionLogger implements TransactionLogger

View File

@ -1,6 +1,6 @@
package me.totalfreedom.fossil.economy;
package fns.fossil.economy;
import me.totalfreedom.economy.TransactionResult;
import fns.patchwork.economy.TransactionResult;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
@ -15,20 +15,20 @@ public class SimpleTransactionResult implements TransactionResult
"The source has an insufficient balance to carry out this transaction.", false);
private final String message;
private final Component component;
private final boolean successful;
private final boolean isSuccessful;
public SimpleTransactionResult(final String message, final boolean successful)
public SimpleTransactionResult(final String message, final boolean isSuccessful)
{
this(message, Component.text(message, successful
? NamedTextColor.GREEN
: NamedTextColor.RED), successful);
this(message, Component.text(message, isSuccessful
? NamedTextColor.GREEN
: NamedTextColor.RED), isSuccessful);
}
public SimpleTransactionResult(final String message, final Component component, final boolean successful)
public SimpleTransactionResult(final String message, final Component component, final boolean isSuccessful)
{
this.message = message;
this.component = component;
this.successful = successful;
this.isSuccessful = isSuccessful;
}
@Override
@ -40,7 +40,7 @@ public class SimpleTransactionResult implements TransactionResult
@Override
public boolean isSuccessful()
{
return successful;
return isSuccessful;
}
@Override

View File

@ -1,10 +1,10 @@
package me.totalfreedom.fossil.economy;
package fns.fossil.economy;
import me.totalfreedom.economy.CompletedTransaction;
import me.totalfreedom.economy.EconomicEntity;
import me.totalfreedom.economy.EconomicEntityData;
import me.totalfreedom.economy.MutableTransaction;
import me.totalfreedom.economy.Transactor;
import fns.patchwork.economy.CompletedTransaction;
import fns.patchwork.economy.EconomicEntity;
import fns.patchwork.economy.EconomicEntityData;
import fns.patchwork.economy.MutableTransaction;
import fns.patchwork.economy.Transactor;
public class SimpleTransactor implements Transactor
{

View File

@ -1,4 +1,4 @@
package me.totalfreedom.fossil.items;
package fns.fossil.items;
import org.bukkit.Location;
import org.bukkit.Material;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.fossil.items;
package fns.fossil.items;
import org.bukkit.Material;
import org.bukkit.entity.Entity;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.fossil.items;
package fns.fossil.items;
import org.bukkit.Material;
import org.bukkit.entity.Entity;

View File

@ -1,15 +1,13 @@
package me.totalfreedom.fossil.reactions;
package fns.fossil.reactions;
import me.totalfreedom.display.BossBarDisplay;
import me.totalfreedom.economy.EconomicEntity;
import me.totalfreedom.shop.Reaction;
import me.totalfreedom.shop.ReactionType;
import fns.patchwork.display.BossBarDisplay;
import fns.patchwork.economy.EconomicEntity;
import fns.patchwork.shop.Reaction;
import fns.patchwork.shop.ReactionType;
import java.util.SplittableRandom;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.bossbar.BossBar;
import java.util.SplittableRandom;
import java.util.function.Consumer;
/**
* Represents a single chat reaction that can be performed by a player.
*/
@ -29,12 +27,6 @@ public final class CopyCatReaction extends Reaction
return reward;
}
@Override
public void onReact(final Consumer<EconomicEntity> entity)
{
entity.accept(null);
}
@Override
public void display(final Audience audience)
{
@ -44,6 +36,12 @@ public final class CopyCatReaction extends Reaction
.build();
}
@Override
public void onReact(final EconomicEntity entity)
{
//
}
public String getRandomCharacterString()
{
final SplittableRandom random = new SplittableRandom();

View File

@ -0,0 +1,5 @@
package fns.fossil.shop;
public class Shoppe
{
}

View File

@ -1,6 +1,6 @@
package me.totalfreedom.fossil.shop.menus;
package fns.fossil.shop.menus;
import me.totalfreedom.display.AbstractMenu;
import fns.patchwork.display.AbstractMenu;
public final class MainMenu extends AbstractMenu
{

View File

@ -1,8 +1,7 @@
package me.totalfreedom.fossil.trail;
import me.totalfreedom.particle.Trail;
import me.totalfreedom.service.Service;
package fns.fossil.trail;
import fns.patchwork.particle.Trail;
import fns.patchwork.service.Service;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,6 +1,6 @@
package me.totalfreedom.fossil.trail.types;
package fns.fossil.trail.types;
import me.totalfreedom.particle.TrailType;
import fns.patchwork.particle.TrailType;
import org.bukkit.Color;
import org.bukkit.Location;
import org.bukkit.Particle;

View File

@ -1,6 +1,6 @@
package me.totalfreedom.fossil.trail.types;
package fns.fossil.trail.types;
import me.totalfreedom.particle.TrailType;
import fns.patchwork.particle.TrailType;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.util.Vector;

View File

@ -1,6 +1,6 @@
package me.totalfreedom.fossil.trail.types;
package fns.fossil.trail.types;
import me.totalfreedom.particle.TrailType;
import fns.patchwork.particle.TrailType;
import org.bukkit.Location;
import org.bukkit.entity.Player;

View File

@ -1,14 +1,13 @@
package me.totalfreedom.fossil.trail.types;
package fns.fossil.trail.types;
import me.totalfreedom.particle.TrailType;
import me.totalfreedom.utils.InterpolationUtils;
import fns.patchwork.particle.TrailType;
import fns.patchwork.utils.InterpolationUtils;
import java.util.Iterator;
import org.bukkit.Color;
import org.bukkit.Location;
import org.bukkit.Particle;
import org.bukkit.entity.Player;
import java.util.Iterator;
public final class RainbowTrail extends SimpleTrail
{
private Iterator<Color> currentColor;

View File

@ -1,7 +1,9 @@
package me.totalfreedom.fossil.trail.types;
package fns.fossil.trail.types;
import me.totalfreedom.particle.Trail;
import me.totalfreedom.particle.TrailType;
import fns.patchwork.particle.Trail;
import fns.patchwork.particle.TrailType;
import java.util.Set;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.Color;
import org.bukkit.OfflinePlayer;
@ -9,9 +11,6 @@ import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Set;
import java.util.UUID;
public abstract class SimpleTrail implements Trail
{
private final UUID associatedPlayerUUID;

View File

@ -1,6 +1,6 @@
package me.totalfreedom.fossil.trail.types;
package fns.fossil.trail.types;
import me.totalfreedom.particle.TrailType;
import fns.patchwork.particle.TrailType;
import org.bukkit.Color;
import org.bukkit.Location;
import org.bukkit.Particle;

View File

@ -1,4 +1,4 @@
package me.totalfreedom.fossil.trail.types;
package fns.fossil.trail.types;
import org.bukkit.entity.Player;

View File

@ -1,5 +0,0 @@
package me.totalfreedom.fossil.shop;
public class Shoppe
{
}