-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes, reenable some mod compat code
- Loading branch information
Showing
26 changed files
with
335 additions
and
161 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
3 changes: 2 additions & 1 deletion
3
polymer-core/src/main/java/eu/pb4/polymer/core/api/item/PolymerItemComponent.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
15 changes: 15 additions & 0 deletions
15
polymer-core/src/main/java/eu/pb4/polymer/core/api/other/PolymerPotion.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,15 @@ | ||
package eu.pb4.polymer.core.api.other; | ||
|
||
import eu.pb4.polymer.core.api.utils.PolymerSyncedObject; | ||
import net.minecraft.entity.effect.StatusEffectInstance; | ||
import net.minecraft.potion.Potion; | ||
import net.minecraft.server.network.ServerPlayerEntity; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public interface PolymerPotion extends PolymerSyncedObject<Potion> { | ||
@Override | ||
@Nullable | ||
default Potion getPolymerReplacement(ServerPlayerEntity player) { | ||
return null; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
polymer-core/src/main/java/eu/pb4/polymer/core/api/other/SimplePolymerPotion.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,17 @@ | ||
package eu.pb4.polymer.core.api.other; | ||
|
||
import eu.pb4.polymer.core.api.utils.PolymerSyncedObject; | ||
import net.minecraft.entity.effect.StatusEffectInstance; | ||
import net.minecraft.potion.Potion; | ||
import net.minecraft.server.network.ServerPlayerEntity; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class SimplePolymerPotion extends Potion implements PolymerPotion { | ||
public SimplePolymerPotion(StatusEffectInstance... effects) { | ||
super((String)null, effects); | ||
} | ||
|
||
public SimplePolymerPotion(@Nullable String baseName, StatusEffectInstance... effects) { | ||
super(baseName, effects); | ||
} | ||
} |
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
Oops, something went wrong.