./gradlew :1.16.2:setCoreVersion
This commit is contained in:
@@ -64,7 +64,7 @@ import net.minecraft.util.hit.HitResult;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
//#if MC>=11200
|
||||
//#if MC>=11400
|
||||
import net.minecraft.client.recipe.book.ClientRecipeBook;
|
||||
import net.minecraft.client.recipebook.ClientRecipeBook;
|
||||
//#else
|
||||
//$$ import net.minecraft.stats.RecipeBook;
|
||||
//#endif
|
||||
@@ -150,8 +150,8 @@ public class CameraEntity
|
||||
, recipeBook
|
||||
//#endif
|
||||
//#if MC>=11600
|
||||
//$$ , false
|
||||
//$$ , false
|
||||
, false
|
||||
, false
|
||||
//#endif
|
||||
);
|
||||
eventHandler.register();
|
||||
@@ -321,8 +321,8 @@ public class CameraEntity
|
||||
|
||||
//#if MC>=11400
|
||||
@Override
|
||||
public boolean isInFluid(Tag<Fluid> fluid) {
|
||||
return falseUnlessSpectating(entity -> entity.isInFluid(fluid));
|
||||
public boolean isSubmergedIn(Tag<Fluid> fluid) {
|
||||
return falseUnlessSpectating(entity -> entity.isSubmergedIn(fluid));
|
||||
}
|
||||
//#else
|
||||
//#if MC>=10800
|
||||
|
||||
@@ -34,32 +34,32 @@ public class ClassicCameraController implements CameraController {
|
||||
speedup = false;
|
||||
for(KeyBinding kb : getMinecraft().options.keysAll) {
|
||||
if(!kb.isPressed()) continue;
|
||||
if(kb.getId().equals("key.forward")) {
|
||||
if(kb.getTranslationKey().equals("key.forward")) {
|
||||
forward = true;
|
||||
speedup = true;
|
||||
}
|
||||
|
||||
if(kb.getId().equals("key.back")) {
|
||||
if(kb.getTranslationKey().equals("key.back")) {
|
||||
backward = true;
|
||||
speedup = true;
|
||||
}
|
||||
|
||||
if(kb.getId().equals("key.jump")) {
|
||||
if(kb.getTranslationKey().equals("key.jump")) {
|
||||
up = true;
|
||||
speedup = true;
|
||||
}
|
||||
|
||||
if(kb.getId().equals("key.left")) {
|
||||
if(kb.getTranslationKey().equals("key.left")) {
|
||||
left = true;
|
||||
speedup = true;
|
||||
}
|
||||
|
||||
if(kb.getId().equals("key.right")) {
|
||||
if(kb.getTranslationKey().equals("key.right")) {
|
||||
right = true;
|
||||
speedup = true;
|
||||
}
|
||||
|
||||
if(kb.getId().equals("key.sneak")) {
|
||||
if(kb.getTranslationKey().equals("key.sneak")) {
|
||||
down = true;
|
||||
speedup = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user