Code style changes, entities fixes
This commit is contained in:
parent
9d604b2d25
commit
44962e18b6
377 changed files with 5038 additions and 4914 deletions
|
@ -1,14 +1,16 @@
|
|||
package ru.betterend.interfaces;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ru.betterend.recipe.builders.AnvilRecipe;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AnvilScreenHandlerExtended {
|
||||
void be_updateCurrentRecipe(AnvilRecipe recipe);
|
||||
|
||||
AnvilRecipe be_getCurrentRecipe();
|
||||
|
||||
List<AnvilRecipe> be_getRecipes();
|
||||
|
||||
|
||||
default void be_nextRecipe() {
|
||||
List<AnvilRecipe> recipes = be_getRecipes();
|
||||
if (recipes.size() < 2) return;
|
||||
|
@ -19,7 +21,7 @@ public interface AnvilScreenHandlerExtended {
|
|||
}
|
||||
be_updateCurrentRecipe(recipes.get(i));
|
||||
}
|
||||
|
||||
|
||||
default void be_previousRecipe() {
|
||||
List<AnvilRecipe> recipes = be_getRecipes();
|
||||
if (recipes.size() < 2) return;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
package ru.betterend.interfaces;
|
||||
|
||||
public interface BetterEndRecipe {}
|
||||
public interface BetterEndRecipe {
|
||||
}
|
||||
|
|
|
@ -4,5 +4,6 @@ import net.minecraft.resources.ResourceLocation;
|
|||
|
||||
public interface FallFlyingItem {
|
||||
ResourceLocation getModelTexture();
|
||||
|
||||
double getMovementFactor();
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package ru.betterend.interfaces;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import net.minecraft.world.level.biome.Biome;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IBiomeList {
|
||||
public List<ResourceKey<Biome>> getBiomes();
|
||||
}
|
||||
|
|
|
@ -4,5 +4,6 @@ import net.minecraft.world.entity.Entity;
|
|||
|
||||
public interface ISlime {
|
||||
public void be_setSlimeSize(int size, boolean heal);
|
||||
|
||||
void entityRemove(Entity.RemovalReason removalReason);
|
||||
}
|
||||
|
|
|
@ -4,6 +4,8 @@ import net.minecraft.core.BlockPos;
|
|||
|
||||
public interface TeleportingEntity {
|
||||
void be_setExitPos(BlockPos pos);
|
||||
|
||||
void be_resetExitPos();
|
||||
|
||||
boolean be_canTeleport();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue