Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs1-24fa
final
Commits
586e37c1
Commit
586e37c1
authored
7 months ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
subclass correctly
parent
3d1aec70
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/edu/caltech/cs001/SparklerEvent.java
+1
-1
src/main/java/edu/caltech/cs001/SparklerEvent.java
src/main/java/edu/caltech/cs001/TurtleSpawnerEvent.java
+1
-5
src/main/java/edu/caltech/cs001/TurtleSpawnerEvent.java
with
2 additions
and
6 deletions
+2
-6
src/main/java/edu/caltech/cs001/SparklerEvent.java
View file @
586e37c1
...
...
@@ -10,7 +10,7 @@ import org.bukkit.event.Listener;
import
org.bukkit.event.player.PlayerBucketEmptyEvent
;
import
org.bukkit.plugin.java.JavaPlugin
;
public
class
SparklerEvent
implem
en
t
s
Listener
{
public
class
SparklerEvent
ext
en
d
s
CaltechMinecraftEvent
{
private
void
onBucketEmpty
(
PlayerBucketEmptyEvent
event
)
{
Block
block
=
event
.
getBlock
();
if
(
isPond
(
block
))
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/edu/caltech/cs001/TurtleSpawnerEvent.java
View file @
586e37c1
...
...
@@ -10,11 +10,7 @@ import org.bukkit.event.Listener;
import
org.bukkit.event.player.PlayerBucketEmptyEvent
;
import
org.bukkit.plugin.java.JavaPlugin
;
public
class
TurtleSpawnerEvent
implements
Listener
{
public
TurtleSpawnerEvent
(
JavaPlugin
plugin
)
{
this
.
plugin
=
plugin
;
}
public
class
TurtleSpawnerEvent
extends
CaltechMinecraftEvent
{
/**
* Checks if the block `centerBlock` is a water block in the middle of a pond of Material.STONE.
*
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help