-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
109 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.ninni.spawn.mixin.tweaks; | ||
|
||
import net.minecraft.world.entity.EntityType; | ||
import net.minecraft.world.entity.ai.control.SmoothSwimmingLookControl; | ||
import net.minecraft.world.entity.ai.control.SmoothSwimmingMoveControl; | ||
import net.minecraft.world.entity.animal.*; | ||
import net.minecraft.world.level.Level; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(Cod.class) | ||
public abstract class CodMixin extends AbstractSchoolingFish { | ||
protected CodMixin(EntityType<? extends AbstractSchoolingFish> entityType, Level level) { | ||
super(entityType, level); | ||
} | ||
|
||
@Inject(method = "<init>", at = @At("TAIL")) | ||
private void S$init(EntityType<? extends AbstractSchoolingFish> entityType, Level level, CallbackInfo ci) { | ||
this.moveControl = new SmoothSwimmingMoveControl(this, 85, 10, 0.02f, 0.1f, true); | ||
this.lookControl = new SmoothSwimmingLookControl(this, 10); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...va/com/ninni/spawn/mixin/RabbitMixin.java → ...ninni/spawn/mixin/tweaks/RabbitMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/com/ninni/spawn/mixin/tweaks/SalmonMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.ninni.spawn.mixin.tweaks; | ||
|
||
import net.minecraft.world.entity.EntityType; | ||
import net.minecraft.world.entity.ai.control.SmoothSwimmingLookControl; | ||
import net.minecraft.world.entity.ai.control.SmoothSwimmingMoveControl; | ||
import net.minecraft.world.entity.animal.*; | ||
import net.minecraft.world.level.Level; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(Salmon.class) | ||
public abstract class SalmonMixin extends AbstractSchoolingFish { | ||
protected SalmonMixin(EntityType<? extends AbstractSchoolingFish> entityType, Level level) { | ||
super(entityType, level); | ||
} | ||
|
||
@Inject(method = "<init>", at = @At("TAIL")) | ||
private void S$init(EntityType<? extends AbstractSchoolingFish> entityType, Level level, CallbackInfo ci) { | ||
this.moveControl = new SmoothSwimmingMoveControl(this, 85, 10, 0.02f, 0.1f, true); | ||
this.lookControl = new SmoothSwimmingLookControl(this, 10); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/ninni/spawn/mixin/tweaks/TropicalFishMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.ninni.spawn.mixin.tweaks; | ||
|
||
import net.minecraft.world.entity.EntityType; | ||
import net.minecraft.world.entity.ai.control.SmoothSwimmingLookControl; | ||
import net.minecraft.world.entity.ai.control.SmoothSwimmingMoveControl; | ||
import net.minecraft.world.entity.animal.*; | ||
import net.minecraft.world.level.Level; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(TropicalFish.class) | ||
public abstract class TropicalFishMixin extends AbstractSchoolingFish { | ||
protected TropicalFishMixin(EntityType<? extends AbstractSchoolingFish> entityType, Level level) { | ||
super(entityType, level); | ||
} | ||
|
||
@Inject(method = "<init>", at = @At("TAIL")) | ||
private void S$init(EntityType<? extends AbstractSchoolingFish> entityType, Level level, CallbackInfo ci) { | ||
this.moveControl = new SmoothSwimmingMoveControl(this, 85, 10, 0.02f, 0.1f, true); | ||
this.lookControl = new SmoothSwimmingLookControl(this, 10); | ||
} | ||
} |
6 changes: 1 addition & 5 deletions
6
.../spawn/mixin/client/BatRendererMixin.java → ...mixin/tweaks/client/BatRendererMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...nni/spawn/mixin/client/CodModelMixin.java → ...wn/mixin/tweaks/client/CodModelMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...in/client/ParrotOnShoulderLayerMixin.java → ...ks/client/ParrotOnShoulderLayerMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...awn/mixin/client/ParrotRendererMixin.java → ...in/tweaks/client/ParrotRendererMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
...awn/mixin/client/RabbitRendererMixin.java → ...in/tweaks/client/RabbitRendererMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../spawn/mixin/client/SalmonModelMixin.java → ...mixin/tweaks/client/SalmonModelMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mixin/client/TropicalFishModelAMixin.java → ...weaks/client/TropicalFishModelAMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...mixin/client/TropicalFishModelBMixin.java → ...weaks/client/TropicalFishModelBMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
.../spawn/mixin/client/TurtleModelMixin.java → ...mixin/tweaks/client/TurtleModelMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters