Advertisement
Guest User

Untitled

a guest
Nov 10th, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. interface Foo {
  2.  
  3.     default World getWorld() {
  4.         return func_1234_a();
  5.     }
  6.  
  7.     default World func_1234_a() {
  8.         throw new IllegalStateException();
  9.     }
  10.  
  11. }
  12.  
  13. // works
  14. class TE extends TileEntity implements Foo {
  15.  
  16. }
  17.  
  18. // works, too
  19. class SomethingElse implements Foo {
  20.  
  21.    World getWorld() {
  22.        return world;
  23.    }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement