#help-development
1 messages Β· Page 129 of 1
do I do something wrong?
looks fine to me
it even crashes without the //
weird, I'm using head database and it's one that's placed on a block
oh hm
then I also don't know π
mwoa not too difficulthttps://github.com/FourteenBrush/MathExpressionParser/blob/master/src/main/java/me/fourteendoggo/mathexpressionparser/TokenList.java
like without the part after the //
try Rotatable instead of Directional @fervent gate
I'm quite sure that that one should work
I'll try thanks
Rotatable is for stuff like signs, which has 16 directions instead of only 4 ones
what error do you get? a thread dump?
if so, send it pls
?paste
someone help me with setting a world border?
Hmm
what do you have so far
this
calculateAndClear method kinda a mess rn, made it yesterday in a first try
weird
the red line is the Border
idk then
what server is that?
or do I have to enter the coords in another way, like not the normal coords but directly a chunk coord?
my Earth server
and with what exactly do you need help there
didnt you do getBlockAt?
Friends someone of you has an example of this, is that I made an item with the ItemStack method with lore, attributes, etc. what I want is that when I have or anyone has the item in the inventory and I modify it for example by changing the This lore will be updated in the player's inventory without having to have the item again?
whats that weird island in the right bottom corner
getBlockAt takes "normal" coordinates. getChunkAt takes chunk coordinates, e.g. X = X / 16, etc
That doesn't seem to work, they're currently facing north when they should be facing east
i do getchunkat
I need the red lines to match up exactly with the map and I'm too dumb to know how
ohhhhhhh
OHHHHH
so as i expected
yup
Friends someone of you has an example of this, is that I made an item with the ItemStack method with lore, attributes, etc. what I want is that when I have or anyone has the item in the inventory and I modify it for example by changing the This lore will be updated in the player's inventory without having to have the item again?
((Rotatable)coalChestBlock.getBlockData()).setRotation(BlockFace.EAST);
Isn't this what you meant?
can someone help me in herlp-server
@tender shard btw now, everything works fine
yes
The only thing mine doesn't like is negative numbers because it thinks it's subtraction lol
I could fix it but that requires effort
i'm just negating the internal value of my Operand class
hmm would be confusing to people ig

seem to have some bugs lol
Wonder if that works for me
time to write more unittests
smh
Do you want me to send mine?
ah ig i know why
my default double value of the operand is Double.POSITIVE_INFINITY
cuz the number is that big, it assumes that no value has been set or whatever
ig
hmm sure
back to using Double.NaN as default then π₯Ί
just use -9
then someone enters -9 and it assumes nothing has been entered lol
There's a LOT that can be done with that, I just wanted to make it as a proof of concept I guess
hehe me creating doubles char by char
Yea that doesn't do anything apparently
why does noone of you use binary trees for this math stuff π’
it's so easy with binary trees
I mean my way aint really that hard either lol
*
/ \
+ 7
/ \
5 2
Once it's in RPN notation it's braindead simple to calculate
Do we need to have a competition for who can solve this problem in the shortest/most efficient way? 
Oh same
Someone like Redempt would come in here and pick us up, walk us to the shredder, put us in and then throw us away
huuuuh not sure about that
what the
probbaly some random person noone of us ever talked to before would win lmao
never used binary trees lol
>>> 3123*3+4/1%3
9370

3123 + 1 lmao
Did mine do that or what
i clearly broke smth
im using scriptengine
ig it doesnt clear its state
basically
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("JavaScript");
Scanner scanner = new Scanner(System.in);
while (true) {
System.out.print(">>> ");
String input = scanner.nextLine();
try {
Object result = engine.eval(input);
System.out.println(result);
} catch (Exception e) {
System.out.println(e.getMessage());
}
}
Right yeah
I just insulted my bf on whatsapp and now he's upset lol
probably slow asf
this doesnt work on modern java versions
there is "Javascript" engine anymore
no*
damn
there is NO javascript engine anymore builtin
(at least there isnt on adopt-openjdk 17)
my profiler says otherwise
well im on java 11 currently so maybe
ah for some reason my code ignores operators now lol
wtf my IJ is broken
macOS?
That seems a little counterproductive to your end goal
:/
on java 17 it definitely doesnt work
whats your job?
i did
he is a professional bug introducer
last year i tried making an expression parser using a while(i < str.length()) and switching chars it did not go well
So a software developer
relatable haha
also alex said this music was shit so i included it in my weird syntax showcase
haha
sorry but it's just not my kind of music
maybe java 16
Why reinvent the wheel π‘
that c++?
for fun
stdin
nah java
Just kidding
oh
also update your fn intelliJ
lmao
nah java lol
You should add a graph calculator
sounds very professional
i actually did that
π very profiessionaal
smh
but whatever
the hell is ln
it says it runs at 60 fps
but its stuttering
javafx aaaaaaaa
idk
so its nice
recommended
but swing canvas is easy when u need to draw simple shit
and it has a nice double buffer thing and the Graphics2D object makes it really easy to draw simple shit
:o
i fucked something up too
string parsing is so fragile if you forget to skip one character it fucks up everything
ah yes, when 5x and 5*x are two different equations
it accepts multi letter identifiers so yeah cant really do anything about that
at least i wont be able to make it parse ax like a * x because it would be parsed as Identifier: ax
software dev with specification for code security and performance but currently fullstacking
lmfaoo
ah lmao super calls chain eo
getValue calls isBlank in superclass which calls getValue :/
fun thing
lmao
i did like
class Context {
static Context newContext {
Context ctx = new Context();
return ctx.setGlobal(ctx);
}
public Value getValue() {
return global.getValue(...);
}
}
``` and spent quite a bit trying to figure out why it was fucking the stack
isnt that like 36 zeros
lmao
ah wait no its 2 at the end
where 2
1.11111...2e36 or whatever
ah
lmao what
i should probably be making an BigOperand class which holds a bigdecimal inside
uhh tried covering Double.POSITIVE_INFINITY but just realized that doesnt make sense at all
otherwise it gave a result of Infinity but now it gives some random big number lol
nice
sounds interesting
how is this even possible for java to interpret such big numbers? im just doing my value *= 10 and value += new int
You should try informatics class in university)
?
probably would get direct answer to how is this even possible for java to interpret such big numbers?
can't C# and C++ intepret it the same way?
like a calculator with E
exactly
if we had 128 bit numbers fixed point would be better
but we dont
beloved bc β€οΈ
idk how is it on english
just trying refresh what i had in informatics class
Were studying history of IEEE754 problems
do floats have a higher precision in comparson with doubles?
ofc not
doubles are "twice as precise"
double has more precision
doubles are 8 bit, floats are only 4
only 8 ππ
does BigInteger use a string to represent itself?
some scaled value iirc
Every class has toString(), so probably yes)
no
isn't double 64 bits ?
64 bits = 8 bytes so
thats what i thought
booleans are never stored as 1 bit tho
yeah sorry, I'm a bit drunk
maybe in a struct bit field in C++
already?
already? you mean "still"
why wouldnt booleans be 1 bit?
ofc bools only take up 1 bit, but the reference itself takes more space π
reference to boolean?
it would be inefficient to query single bits
o
that's not always true, e.g. just look at an ESP8266
thats a wifi chip
it's a normal computer
lmfao
and im sure its not always true, but generally it is
it's a computer that also happens to have wifi
yeah you might be right on that
its a wifi chip with microcontroller capablities
that's bullshit tbh though
what
this?
it is a normal microchip and it also has wifi builtin
how would that make it any different to a normal computer that you have next to your desktop
im not saying it is but its obviously a chip for doing shit with networking,
i mean it has 80 KiB of user data memory, while the raspberry pi 2 has a whole gigabyte
i dont think its intended for 'heavy' computing
heavy for microcontrollers
a raspberry also costs 10 times more though
you can get an ESP for like 4β¬
but yeah you are totally right, a normal computer wouldn't care about "is this one byte or one bit"
anyone into creating more invalid expressions lol?
a regex couldve covered that more easily
what about "asd"?
im back, how can I retrieve the pdc of a block? can I just use the constructor again?
yes
ok ty
you can store the CustomBlockData object, or create a new one. both will work
ok ty
why is there no boolean PersistentDataType?
am I blind?
is there a reason?
Use integer with 0 and 1
Or that
bruh xD
But yeah there's no boolean afaik lol
imagine not having an expression calculator 
ty
i have one so
shut
Lol sorry
do you got one too
I made one in an hour yes
lmao
It's extremely primitive but it works 
does it use an AST
a what
abstract syntax tree
No
lol no idea what that is
It uses RPN notation
mine just parses each char and decides what token to add ;
Mine kinda works like that yeah
where
6 * 4 + 8
``` turns into
AddNode
/ \
MulNode 8
/
6 4
this is how you implement shit like operator priority
Ah, the binary tree alex mentioned earlier.
yeah
I think RPN notation is probably based on that
whats rpn
Reverse Polish notation, it's a way to write expressions that can easily be computed
ah
For example, 1 + 1 becomes 1 1 +
yeah
And then it uses a stack to pretty easily calculate it
so you have a values and operators stack?
then you can just use a stack and a string character reader
This is the calculation code
but ast is very nice for stuff like functions
made my own operator enum
Something like x^2 + x + 1?
though you do need all this shit
lul
Does anyone know of a tutorial/help for a permissions plugin with groups and a MySQL database?
ew
Yeah mine is 3 classes and they're all short LOL
the evaluation and parsing is surprisingly fast tho
I mean you can basically use any MySQL Database Tutorial as long as you have a basic understanding of relational database models.
And for the permission plugin there's that: https://bukkit.fandom.com/wiki/Developing_a_permissions_plugin
This tutorial will guide you through how to create your own permissions plugin that sets permissions using the new Bukkit permissions API. This tutorial assumes you have a good understanding of the Java language, and general plugin development. This tutorial will only cover the specifics of the Bukkit permissions API. Everything that can have pe...
altho i have no idea what im doing with that benchmark
Use luckperms and read the docs
+- ExprParsing: 1000000 Passes (MAX) | Total Time: 862747900ns (862ms) | Avg. time/pass: 862.7479ns (8.627479E-4ms)
+- ExprParsingAndExec: 1000000 Passes (MAX) | Total Time: 1068550500ns (1068ms) | Avg. time/pass: 1068.5505ns (0.0010685505ms)
+- ExprExec: 1000000 Passes (MAX) | Total Time: 184482300ns (184ms) | Avg. time/pass: 184.4823ns (1.8448230000000002E-4ms)
for expression
test(x * 9 + 1) ^ (7 - 5)
calculating time with system.nanos?
did that too and then the jit decided to optimize stuff :/
what do you use
same
this is the benchmark utility i made
benchmark itself
one of them
i have no idea what im doing wih my benchmark
random is prob gonna slow down your time
pregenerate the values
an array of strings
yeah wouldve been better
My expression parser is messed up. But atleast I can solve stuff like this (8=9&8*3333=2&(2<5|7%1123>10|!F|(!T|(!F|!(!F|!F&!T)))))
(result is false)
jmh generated some stuff lol
lmao
Or this 3333β€9^9%2>7^10β€3333|3333*1123<8|(7β€8&6%11β€6^(5<1123&5434%9β€7|F&!T))
tf
I needed a parser for if expressions
are those logic or bitwise
operators
both
any way to modify the display and lore of ItemTag(Item HoverEvent)?
I tried to use JsonParser and ItemTag.ofNbt(jsonElement.toString())
But Gson will break some type of formats like uuid, enchantment level.
I just made it with single characters because it was easier
but I'm not doing it bitwise
needed something for configurable ifs
"=", "β ", ">", "<", "β€", "β€","!", "&", "|", "^","T","F","(",")"
are supported tokens
If I put <= does it say its invalid
it replaces it before evaluation
ok good
what are T and F
true false
ah
ye. Also gets replaced
tf
lmao
by what? 0 and 1?
I'm sure the boolean algebra you had to do behind the scenes for that was so fun
Brackets were the worst
They always are
Although I guess technically you can handle brackets recursively.
mye
i bet youll end up making an ast
whats an ast again lol
for tokens and then you parse those into an ast
I did
and whats left and right?
Welp you solved it the same way I would've
YOUR MOM IS A SUPPORTED TOKEN
scnr
imagine you have a node BinaryOperation: +, it needs a left and right operand
nah shes too big for the heap to handle
damn
she thicc
anyways, if you want for example (5 + 6) * (8 + 1) would be like
*
/ \
+ +
/ \ / \
5 6 8 1
and then to evaluate one, you have to evaluate its children
lol
and then it goes on until you get to constant or whatever
output from my parser:
+-> (5 + 6) * (8 + 1)
| ? SOURCE: | (5 + 6) * (8 + 1)
| ? TOKENS: | [tkLEFT_PARENTHESIS, tkNUMBER_LITERAL: 5.0, tkOPERATOR: PLUS, tkNUMBER_LITERAL: 6.0, tkRIGHT_PARENTHESIS, tkOPERATOR: MULTIPLY, tkLEFT_PARENTHESIS, tkNUMBER_LITERAL: 8.0, tkOPERATOR: PLUS, tkNUMBER_LITERAL: 1.0, tkRIGHT_PARENTHESIS]
| ? AST: | BinOpNode: (BinOpNode: (ConstantNode: 5.0)+(ConstantNode: 6.0))*(BinOpNode: (ConstantNode: 8.0)+(ConstantNode: 1.0))
| 3818600 ns (3 ms)
| = 99.0
I was reading https://www.spigotmc.org/threads/drawing-a-line.176695/ this resource and was wondering how I can get a direction from one mob to another
oh wait nvm
direction? you mean the vector?
you use some trigonometry
like sin cos shit
Thats the RPN, it literally is a tree. Lol
yeah
but are you parsing normal math expressions as input or do you have to input the RPN
you can do something like this:
Vector vec1 = entity1.getLocation().toVector();
Vector vec2 = entity2.getLocation().toVector();
Vector difference = vec2.substract(vector1).normalize();
I'm parsing normal expressions and converting them into RPN
yeah
Yep
your mom is concerting expressions into RPN
concerting
u r not very nice.
I just couldnt resist
he claims hes drunk
He probably is
last time he was we went into papermc discord and started spamming your mom jokes
I guess your mom jokes are his tell
yeah and then I had a discussion with amaranth about copyright, then I sent a soundcloud link and got banned there
lmao wjat
thank god people here aren't overly sensitive π
I have to admit that it was a song with a quite NSFW title
ah
HΓ€ngst du schon am Haken? Knusprig Paniert und JEFF & Jefferson ergeben zusammen: Le Crochet!
it was this
LMAO
lmfao
I made this a few years ago when I was actually in that situation
lmaooo
and then I didnt realize that paper is full of 12 year olds
Is Soundcloud down wtf?
guys thats offensive u cant send that guys

huh weird. works fine for my expensive german internet
same
It doesn't like Firefox I guess, worked on Chrome.
I just didn't verify
still
haha soundcloud treanslations are a joke
embed fail
it's meant to say "share" but it says "get rid of it"
i dont understand shit
LOL
of the lyrics
I will also have to recode my parser. Currently it's pure chaos :( It does work tho. And I just wanted to test whether I'm able to do it
then check out this. it has no lyrics so nothing you couldnt understand lol https://soundcloud.com/le-crochet/onion-rings?si=0366f6c299b4488e96b304f1f63a2eb4&utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing
It's not onion if you say "#nogarlic" afterwards
whos le crochet
me
lmao
I am Le Crochet & mfnalex
sounds like a collab channel
ok so mfnalex is closest
private static int[] getMostInnerExpressionBounds(String expression, int addToStart) {
int nextOpeningBracket = expression.indexOf("(");
if (nextOpeningBracket != -1)
return getMostInnerExpressionBounds(expression.substring(nextOpeningBracket + 1), addToStart + nextOpeningBracket + 1);
int nextClosingBracket = expression.indexOf(")");
if (nextClosingBracket != -1) {
return new int[]{addToStart, addToStart + nextClosingBracket};
}
return new int[]{addToStart, addToStart + expression.length()};
}
definitly not a clean solution
we got 4th place in the EPS in 2008... or 2009... or 2007... sth like that
The Rock has met the biggest fight of his life, so in order to beat a standing petunia, the only attack he has is to spit some bars.
I am going to start re-uploading some videos from my Twitter onto YouTube etc.
https://twitter.com/DitzyFlama/status/1484633940841295873?s=20
The FULL ver. is available on SoundCloud:
https://soundcloud.com/ditzy...
ah
nice
Hi, I need to get a custom head, an idea of how to do ( Without the playerβs name but with an ID)? I googled it, but I couldnβt find it in 1.17
on 1.18+ there's the PlayerProfile class. On 1.17 and older you have to use reflection to set the textures field on the GameProfile class
I copy this in a new class ?
Location start = player.getLocation();
Vector direction = player.getEyeLocation().getDirection();
for(double i = 0;i<10; i+=0.5) {
direction.multiply(i);
start.add(direction);
player.getWorld().spawnParticle(Particle.DRIP_LAVA,start,10);
start.subtract(direction);
direction.normalize();
}```
all it does rn is spawn particles under me
no, you'd rather take a look at it then steal only the methods you need π
Can someone help me? I just downloaded intelij idea and when I click on it it's not doing anything
restart your PC π
sounds weird, but fixes 99% of problems lol
so that gets the direction?
yes
ty
When i restart pc strange things happen
np
but why does this code just spawn particles under me then
because your math is fucked up
you substract the "looking at" vector from the actual location
this can't possibly work
it seems like you don't really know what a vector actually is
wait what
What it this
you can ignore those annotations and just remove them
they dont really do anything
they are there to clarify stuff
e.g. like @Override in onEnable()
They do cause warnings tho :p
yeah that's what I meant with "clarifying things" π
but yeah they are useless when just copy/pasting someone else's stuff
Clarify things sounds more like documentation
yeah-
I've read docs on vectors
hmm...
But geometry kills me
a Vector is nothing more than a class that holds a location and direction. You can turn it into "only a direction" by substracting the actual location from it, and normalizing it. Basically a Vector is nothing else than just "x,y,z,pitch,yaw"
To get the "direction" between Vec A and Vec B, you just substract A from B
how would pitch and yaw be set when there is only 3 parameters
Vector(int,int,int)
Any idea @tender shard for this issue ?
oh I see
add dependency
yes, you didnt add spigot as dependency
you probably "only" use spigot-api
i need to do, like this ?
yes
Hi everyone, could anyone help me understaning whats wrong here? Data is a list of <MapValues> which contains two values, a key and a value
Caused by: java.lang.UnsupportedOperationException
<repository>
<id>minecraft-libraries</id>
<url>https://libraries.minecraft.net</url>
</repository>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>3.2.38</version>
<scope>provided</scope>
</dependency>
Restarted. It's not working still.
add both, then you will have the "authlib" thing
then I also have no clue, I guess you'll have to message JetBrains support
i have add this by the window and its working
how did you create that map
i am using old version because of 32 bit
wdym?
Arrays#asList and Collections#singletonList provide immutable maps
but i have this other issue : π
List.of too
i don't think you understood the problem
Caused by: java.lang.UnsupportedOperationException
at java.util.AbstractList.remove(AbstractList.java:167) ~[?:?]
at will0mane.plugins.gunmaker171.weapon.DefaultWeapon.removeData(DefaultWeapon.java:88) ~[?:?]
at will0mane.plugins.gunmaker171.weapon.DefaultWeapon.setAmmoLeft(DefaultWeapon.java:70) ~[?:?]
at will0mane.plugins.gunmaker171.weapon.DefaultWeapon.lambda$getShootFunctions$2(DefaultWeapon.java:58) ~[?:?]
at will0mane.plugins.gunmaker171.weapon.ShootingHandler.handleShootEvent(ShootingHandler.java:18) ~[?:?]
at will0mane.plugins.gunmaker171.weapon.ShootingHandler.onClick(ShootingHandler.java:31) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.17.1.jar:3284a-Spigot-3892929-0ab8487]
... 21 more
this is the error i get
its immutable lol
I know that's the error and I understand it perfectly
you are trying to remove stuff from an ImmutableList
you're trying to modify an immutable collection
some lists are "not changable" by default
you cannot remove anything from those
what's DefaultWeapon line 88?
so how can i fix it?
probably something like "myList.remove(...)" right?
.
so what class does "myList" have?
true
MapValues
where did you get this object from?
yeah but what did you set it to?
wait a second
it must be something custom, since neither the default JDK nor spigot includes any "MapValues" class
I see
yeah i made that class
you can easily fix this
instead of doing Arrays.asList, you have to do this:
new ArrayList<>(Arrays.asList(...))
example:
Do someone know how to save with NBTApi a List of Object ?
Arrays.asList is immutable
oh i see
List<String> firstList = Arrays.asList("a","b","c");
List<String> secondList = new ArrayList<>(firstList);
firstList is immutable, secondList is mutable
so like this
yes
np π
hmm, i get the good head, but now i have this warning when i compile my plugin :
that's no problem at all
some class files are what?
you can safely ignore this warning
okay
some classes are
it probably only is upset about the META-INF files
they do
they are sus
obama
hellooo
obama sussy baka
WASSUP
smh watching a c++ tutorial about oop
his mic drop was also legen... wait for it
Is there an option to remove unnecessary warnings in IntelliJ ?
I would just ignore those warnings tbh
I need to do this where ?
put it at the top of your method
on the method or the class
like @EventHandler
I generally ignore the warnings ye
real chads use checkstyle.xml files to setup their warnings ;P
how can animals speak :/
okay thanks, its working, but i still have warning like this :
that very condensed filetree
wdym
where @urban grotto annotations
hate it
that dude should really take another name
?
oh that
hella condensed
well when you have 600 classes, you'r elucky over every pixel of saved space
getScheduler().isCurrentlyRunning asking for int input. what is that?
solution: start coding on an 8k tv
the "id" of the task
name sucks lol
doesnt it return a BukkitTask?
BukkitTask#getId
and scheduleTaskLater or whatever an int
only half of those methods return a BukkitTask
the other half just returns an int
yes ? its says : "Not annotated parameter override @ NotNull parameter
imagine if I worried about warnings lol
tf
it's frustrating
alt enter and insert annotation
quick fixes
i opened it from bat file and it says out of memory and spams things
you will get used to ignore warnings. when I compile JeffLib, I get 500+ wranings
perfect thanks
788 warnings
yeah okay I got a bit more π
looks at my zombies plugin
I could collapse your mom
yeah not many
but I dont do so out of respect towards you
ok nvm I'm actually close to the amount of classes in the zombies project
even though I'm not even 5% there
warnings are bit like...
I mean stuff like this:
try {
if(file.exists()) // doStuff();
}```
where doStuff throws a FileNotFoundException
I am using runTaskTimerAsynchronously
but I can't find a way to get the id :/
show your code pls
you can use the consumer to get the id
or the normal runTaskTimer method, which returns a BukkitTask
It is possible to make a kind of brick to be able to make it appear or not, because it ruins the readability of the code, without making a function
int id = scheduler...
Pro tip! make an item builder
you'll collapse like 20 lines into 5
pro tip! #2 - Make your item builder fetch items from the config
that way you collapse like 5 lines into 1
Either have too many classes or have one big class
100 classes aint much
you can do it like this
Bukkit.getScheduler().runTaskTimer(this,new Consumer<BukkitTask>() {
@Override
public void accept(BukkitTask bukkitTask) {
// Do your stuff here
if(bukkitTask.getTaskId() == 0) {
// Kill myself when task ID is zero
}
}
}, 1, 1);
thanks
runTaskTimer(this, task -> {}) kek
?jd-s
yeah, that's exactly what I suggested?
π
you didnt use a lambda π
grr
cursed
because I thought they dont know about lambdas yet
lambdas can be VERY confusing when you dont know about them yet
thats why I wrote a blog post about them https://blog.jeff-media.com/understanding-lambdas-and-method-references/
@echo basalt was it you who sent that message about when to ask for help
maybe
?ask
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!
Not that one
lambdas are just like
Could you link it
(<insert params here>) -> {code block}
Alex is a man of so many talents... Making songs about ||fucking a fat girl|| and writing blog posts on lambdas and method references 
this?
they are just an anon class without needing to actually tell anyone π
haha
yeah I'm hopeless
LOL
my father called me at 2 am, and he didnt think that I might be asleep
he just assumed "you're probably awake anywy I guess"
Were you?
I mean
yeah I woke up at 1 am haha
He knows that you're awake
I went to bed at like 7am
santa be like
same
wait no, I was still awake when it was 9am
but yeah I also only woke up at 1am so it doesnt really count
I went to bed at 8 pm and woke up at 8 am
you live the healthy live
I'm going to bed now... Have a headache π
aspirin!
No I have been partying the whole weekend so I was tired
and drink some water
They like never work for me :c
damn bro, my whole life is a party, sometimes I wonder how I'm still alive
Same
damn then try Ibuprofen
I hate that I try going to bed at reasonable times
Same
Iβm surprised I got home safe
but end up being obsessive about stupid shit
Sleep is the only fix
then I can't go to sleep without getting out of bed, doing what I was obsessing about and going back to sleep
if neither aspirin nor ibuprofen works for you, you have to go next level and ask your doctor for Novalgin/Metamizole
Or donβt take pills at all
Or I just go and sleep
that will probably also work
Wake up tomorrow and be fine
my body has no troubles with staying awake at night
there was a day where I woke up at 3am and went to bed at 3am not feeling tired at all
my body has no problem about drining alcohol. It has problems when stopping to drink alcohol lol
Sounds like an addiction
it is, yeah
Drinks to remove the hangover
I guess I'm addicted with staying awake
How old?
everyone knows about this π₯²
around 18
Itβll change soon
I feel like Iβve lost some of my emotions
The world feels boring π€·ββοΈ
Maybe I took too much mdma
or not enough crack cocaine
Never have and never will try that
My friends family member died from laced mdma
Coca was kinda fun
Took fentanyl instead
If you do once a month
Coke and crack are two different things
damn
my bf is addicted to heroin and I can tell you, you dont want this to happen
I know right
I made a promise to never try anything like meth etc
Any Opioids as well
don't do drugs, do commissions
why not both
Do both
When i was a kid i promised myself that i will never smoke
both will ruin your life but you can stop one of them
^
And drink
Everyone did
smoking is the worst addiction of all. it doesnt even add ANYTHING useful to your life lol
Nicotine as a whole
I saw a video about the psychology of nicotine and smoking in general
iirc it was a coping mechanism
You get more stressed from it
Yeah
which is why it's hard to stop
Smokers are so annoying... they keep walking around the train platform every morning smoking
starting to smoke was probably the worst decision of my whole life
bro my university has a field in front of enterance
Even if you stop being addicted from the nicotine you will still fiend the cig
5 * 20 meters
while telling everyone "yo I'm gay" was the best decision I ever made
And it's always filled with smokers like me
Honestly most people donβt care anymore
I wish someone would enforce the no smoking sign
Nobody have a problem with someone being gay
everybody turn Lightning McQueen and wroom-wroom as far as they can?
you'd be surprised....
I don't want to breath that
Itβs the same with racism but itβs getting better
stuff like this happens EVERY DAY ^
Yeah but those are kids
Never come to russia
most of those idiots are 20+ year old and actually belive what they say
I feel like most people over 18 donβt care
Damn
Body of an adult, brain of an undeveloped child
I just donβt like people forcing shit upon me, like someone forcing that theyβre homosexual, developer etc
I couldnβt care less what you do on your free time leave me alone
yeah I still remember when I sent that screenshot, choco replied something like "damn fire response mfnalex" lol
#help-development by the way
what a nice conversation about development
This is the new general
we're talking about brain development
or the lack of
kiss nibbler straight mf go freak woman straight
yeah
i tried
I have a problem with the extreme feminist though. βYou may not like a white cis male presidentβ but like that shit is racist and sexist itβs just so weird
Either you want equality or you just stfu and cry alone
I use βniggardlyβ and oh boy Iβve gotten shit for that
why did you guys end up talking about racism in here
Because noone asked a java question
undeveloped brains come to this
Has nothing to with racism
Just underdeveloped adults
Can you pass me the Wiki where spigot has an example of how to create plugins from scratch? plsss
iq development
Tbh most of those articles are shit
Just pick a topic you want
cool kids just watch youtube videos to learn
Like a kit plugin and look at the docs
dm
If you have problems google them and then ask here
When analyzing code you should try to understand then apply it
This explains how to set everyhing up, but it doesnt have any content
Than you very much!
Np
Np
it also requires this though π
I would even say an intermediate knowledge
hm I would say that
my first plugin, ChestSort, I wrote when I had basically no idea about at all
the code is shit but it got way over 100k downloads
my mod sees it, table also does but book nope
so I guess "basic knowledge" is good enough to get started π
Time for a rewrite
indeed
I mean sure but I would recommend a higher level
ofc
So you know java?
what is an object
but how are you going to learn java without having an actual project
your mom is one
shut up
what did you expect when asking this
I would say that dogs are objects
did you know theres a lib that allows you to run python in java?
in germany we actually have a law that says "animals are NOT objects. but they are treated like objects" ahaha. Β§ 311 a BGB
python scripts
You can run python in JavaScript
pyscript ik
objects are instanceof "anything". stuff that can have methods and fields. objects in java are everything that's not a primitive
No
anyways back to my question
java only knows 2 things:
primitives and objects
i basically want players to discover recipe vanilla way
if they ever picked up all keys of my recipe, they will discover it
just like vanilla does
but how
So dumb java only knowing about 2 things π
An object is an instance of an class
listen to EntityPickupItemEvent ,loop over inv contents, check if they have everything, and if yes, do #discoverRecipe
yeah but classes are objects too
well
they might not have it anymore
Depends on how you see it imo
player picks up iron ore, then puts it in chest
true, but I mean
Class<Bukkit> bukkitClazz = Bukkit.class;
Each object of that class Carrieβs different states etc
and then player picks up iron block, which is second shape key
then recipe gets discovered
obv "Bukkit" is a class object
the java docs even say that everything is either an object or a primitive
what else would it be
i need to check if player ever had X in their inventory
