Add Annotations
All checks were successful
SlightlyVanilla/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-03-21 12:35:09 -04:00
parent 2e76ebd416
commit 31bc26c4f8
3 changed files with 7 additions and 1 deletions

4
.gitignore vendored
View File

@ -22,4 +22,6 @@ bin/
# fabric # fabric
run/ run/
remappedSrc/

View File

@ -28,6 +28,7 @@ public class SlimeballEntity extends ThrownItemEntity {
super(SlightlyVanilla.SLIMEBALL_ENTITY, x, y, z, world); super(SlightlyVanilla.SLIMEBALL_ENTITY, x, y, z, world);
} }
@Override
protected Item getDefaultItem() { protected Item getDefaultItem() {
return Items.SLIME_BALL; return Items.SLIME_BALL;
} }
@ -48,6 +49,7 @@ public class SlimeballEntity extends ThrownItemEntity {
} }
} }
@Override
protected void onCollision(HitResult hitResult) { protected void onCollision(HitResult hitResult) {
super.onCollision(hitResult); super.onCollision(hitResult);
if (!world.isClient()) { if (!world.isClient()) {

View File

@ -31,6 +31,7 @@ public class SpawnEggEntity extends ThrownItemEntity {
super(SlightlyVanilla.SPAWN_EGG_ENTITY, x, y, z, world); super(SlightlyVanilla.SPAWN_EGG_ENTITY, x, y, z, world);
} }
@Override
protected Item getDefaultItem() { protected Item getDefaultItem() {
return Items.PIG_SPAWN_EGG; return Items.PIG_SPAWN_EGG;
} }
@ -51,6 +52,7 @@ public class SpawnEggEntity extends ThrownItemEntity {
} }
} }
@Override
protected void onCollision(HitResult hitResult) { protected void onCollision(HitResult hitResult) {
super.onCollision(hitResult); super.onCollision(hitResult);
if (!world.isClient()) { if (!world.isClient()) {