Skip to content

Commit

Permalink
chore(stubbing): Stub Paper Methods (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
thelooter committed Jan 29, 2024
1 parent be5a01c commit 4bfc7e3
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/be/seeseemelk/mockbukkit/MockUnsafeValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
import net.kyori.adventure.text.serializer.plain.PlainComponentSerializer;
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
import org.bukkit.Color;
import org.bukkit.FeatureFlag;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
Expand Down Expand Up @@ -426,6 +427,13 @@ public String getStatisticCriteriaKey(@NotNull Statistic statistic)
throw new UnimplementedOperationException();
}

@Override
public @Nullable Color getSpawnEggLayerColor(EntityType entityType, int i)
{
// TODO Auto-generated method stub
throw new UnimplementedOperationException();
}

@Override
public Material getMaterial(String material, int version)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,13 @@ public void mirror(@NotNull Mirror mirror)
throw new UnimplementedOperationException();
}

@Override
public void copyTo(@NotNull BlockData blockData)
{
// TODO Auto-generated method stub
throw new UnimplementedOperationException();
}

@Override
public @NotNull BlockState createBlockState()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,13 @@ public long getLastSeen()
return MockBukkit.getMock().getPlayerList().getLastSeen(getUniqueId());
}

@Override
public @Nullable Location getRespawnLocation()
{
// TODO Auto-generated method stub
throw new UnimplementedOperationException();
}

@Override
public void incrementStatistic(@NotNull Statistic statistic)
{
Expand Down Expand Up @@ -355,6 +362,13 @@ public void setStatistic(@NotNull Statistic statistic, @NotNull EntityType entit
throw new UnimplementedOperationException();
}

@Override
public @Nullable Location getLocation()
{
// TODO Auto-generated method stub
throw new UnimplementedOperationException();
}

@Override
public @NotNull PlayerProfile getPlayerProfile()
{
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/be/seeseemelk/mockbukkit/entity/PlayerMock.java
Original file line number Diff line number Diff line change
Expand Up @@ -1943,6 +1943,13 @@ public Location getBedSpawnLocation()
return bedSpawnLocation;
}

@Override
public @Nullable Location getRespawnLocation()
{
//TODO Auto-generated method stub
throw new UnimplementedOperationException();
}

@Override
public long getLastLogin()
{
Expand All @@ -1961,6 +1968,13 @@ public void setBedSpawnLocation(@Nullable Location loc)
setBedSpawnLocation(loc, false);
}

@Override
public void setRespawnLocation(@Nullable Location location)
{
// TODO Auto-generated method stub
throw new UnimplementedOperationException();
}

@Override
public void setBedSpawnLocation(@Nullable Location loc, boolean force)
{
Expand All @@ -1970,6 +1984,13 @@ public void setBedSpawnLocation(@Nullable Location loc, boolean force)
}
}

@Override
public void setRespawnLocation(@Nullable Location location, boolean b)
{
// TODO Auto-generated method stub
throw new UnimplementedOperationException();
}

@Override
public boolean getAllowFlight()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,13 @@ public boolean removeEnchant(Enchantment ench)
return nonNull(this.enchants.remove(ench));
}

@Override
public void removeEnchantments()
{
// TODO Auto-generated method stub
throw new UnimplementedOperationException();
}

@Override
public boolean hasConflictingEnchant(Enchantment ench)
{
Expand Down

0 comments on commit 4bfc7e3

Please sign in to comment.