Add Annotations
SlightlyVanilla/pipeline/head This commit looks good Details

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

2
.gitignore vendored
View File

@ -23,3 +23,5 @@ bin/
# fabric
run/
remappedSrc/

View File

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

View File

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