Browse Source

Add Annotations

1.15
TheBrokenRail 1 year ago
parent
commit
31bc26c4f8
  1. 4
      .gitignore
  2. 2
      src/main/java/com/thebrokenrail/slightlyvanilla/entity/SlimeballEntity.java
  3. 2
      src/main/java/com/thebrokenrail/slightlyvanilla/entity/SpawnEggEntity.java

4
.gitignore

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

2
src/main/java/com/thebrokenrail/slightlyvanilla/entity/SlimeballEntity.java

@ -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()) {

2
src/main/java/com/thebrokenrail/slightlyvanilla/entity/SpawnEggEntity.java

@ -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()) {

Loading…
Cancel
Save